145 find . "(" -name \*.thy -o -name \*.ML -o -name \*.scala ")" -perm +111 -print | xargs chmod -f -x |
145 find . "(" -name \*.thy -o -name \*.ML -o -name \*.scala ")" -perm +111 -print | xargs chmod -f -x |
146 find . -print | xargs chmod -f u+rw |
146 find . -print | xargs chmod -f u+rw |
147 |
147 |
148 perl -pi -e 's/^(ISABELLE_SCALA_BUILD_OPTIONS=")/$1-optimise /,' etc/settings |
148 perl -pi -e 's/^(ISABELLE_SCALA_BUILD_OPTIONS=")/$1-optimise /,' etc/settings |
149 |
149 |
|
150 ./Admin/build all || fail "Failed to build distribution" |
|
151 |
150 cp -a doc-src doc-src.orig |
152 cp -a doc-src doc-src.orig |
151 |
153 ./bin/isabelle build_doc -a || fail "Failed to build documentation" |
152 ./Admin/build all || fail "Failed to build distribution" |
|
153 |
154 |
154 if [ -n "$ISABELLE_JEDIT_BUILD_HOME" ]; then |
155 if [ -n "$ISABELLE_JEDIT_BUILD_HOME" ]; then |
155 [ -d "$ISABELLE_JEDIT_BUILD_HOME" ] || fail "Bad jedit_build component directory: \"$ISABELLE_JEDIT_BUILD_HOME\"" |
156 [ -d "$ISABELLE_JEDIT_BUILD_HOME" ] || fail "Bad jedit_build component directory: \"$ISABELLE_JEDIT_BUILD_HOME\"" |
156 eval "$(fgrep ISABELLE_JEDIT_BUILD_VERSION "$ISABELLE_JEDIT_BUILD_HOME/etc/settings")" |
157 eval "$(fgrep ISABELLE_JEDIT_BUILD_VERSION "$ISABELLE_JEDIT_BUILD_HOME/etc/settings")" |
157 [ -n "$ISABELLE_JEDIT_BUILD_VERSION" ] || fail "Bad ISABELLE_JEDIT_BUILD_VERSION" |
158 [ -n "$ISABELLE_JEDIT_BUILD_VERSION" ] || fail "Bad ISABELLE_JEDIT_BUILD_VERSION" |
158 export ISABELLE_JEDIT_BUILD_HOME ISABELLE_JEDIT_BUILD_VERSION |
159 export ISABELLE_JEDIT_BUILD_HOME ISABELLE_JEDIT_BUILD_VERSION |
159 ./bin/isabelle jedit -b || fail "Failed to build Isabelle/jEdit" |
160 ./bin/isabelle jedit -b || fail "Failed to build Isabelle/jEdit" |
160 fi |
161 fi |
161 |
162 |
162 rm -rf Admin |
163 rm -rf Admin |
163 |
|
164 MOVE=$(find doc-src \( -type f -a -not -type l -a -not -name isabelle_isar.pdf -a -not -name pghead.pdf -a \( -name \*.dvi -o -name \*.eps -o -name \*.ps -o -name \*.pdf \) -a -print \) | grep -v 'gfx/.*pdf') |
|
165 mv -f $MOVE doc |
|
166 rm doc/Isa-logics.eps |
|
167 rm doc/adaptation.dvi doc/adaptation.pdf doc/architecture.dvi doc/architecture.pdf |
|
168 rm -rf doc-src |
164 rm -rf doc-src |
169 |
165 |
170 mv doc-src.orig doc-src |
166 mv doc-src.orig doc-src |
171 |
167 |
172 mkdir -p contrib |
168 mkdir -p contrib |