equal
deleted
inserted
replaced
14 export CVSROOT=sunbroy2:/usr/proj/isabelle-repository/archive |
14 export CVSROOT=sunbroy2:/usr/proj/isabelle-repository/archive |
15 ;; |
15 ;; |
16 *broy*) |
16 *broy*) |
17 export CVSROOT=/usr/proj/isabelle-repository/archive |
17 export CVSROOT=/usr/proj/isabelle-repository/archive |
18 ;; |
18 ;; |
19 *.cl.cam.ac.uk) |
19 *) |
20 export CVSROOT=sunbroy2.informatik.tu-muenchen.de:/usr/proj/isabelle-repository/archive |
20 export CVSROOT=sunbroy2.informatik.tu-muenchen.de:/usr/proj/isabelle-repository/archive |
21 ;; |
21 ;; |
22 esac |
22 esac |
23 |
23 |
24 DISTPREFIX=~/tmp/isadist |
24 DISTPREFIX=${DISTPREFIX:-~/tmp/isadist} |
25 |
25 |
26 umask 022 |
26 umask 022 |
27 |
27 |
28 TAR=tar |
28 TAR=tar |
29 type -path gtar >/dev/null && TAR=gtar |
29 type -path gtar >/dev/null && TAR=gtar |
114 echo "### Exporting $DISTNAME ..." |
114 echo "### Exporting $DISTNAME ..." |
115 echo "###" |
115 echo "###" |
116 |
116 |
117 cd "$DISTBASE" |
117 cd "$DISTBASE" |
118 |
118 |
119 $EXPORT |
119 $EXPORT || fail "Export failed!" |
120 $FIND . -name CVS -print | xargs rm -rf |
120 $FIND . -name CVS -print | xargs rm -rf |
121 $FIND . -name .cvsignore -print | xargs rm -rf |
121 $FIND . -name .cvsignore -print | xargs rm -rf |
122 $FIND . "(" -type d -a -empty ")" -print | xargs rm -rf |
122 $FIND . "(" -type d -a -empty ")" -print | xargs rm -rf |
123 $FIND . "(" -type d -a -empty ")" -print | xargs rm -rf |
123 $FIND . "(" -type d -a -empty ")" -print | xargs rm -rf |
124 $FIND . "(" -type d -a -empty ")" -print | xargs rm -rf |
124 $FIND . "(" -type d -a -empty ")" -print | xargs rm -rf |
134 PDFLATEX=$(type -path pdflatex) |
134 PDFLATEX=$(type -path pdflatex) |
135 |
135 |
136 for DOC in $(cat Contents) |
136 for DOC in $(cat Contents) |
137 do |
137 do |
138 cd "$DOC" |
138 cd "$DOC" |
139 make dvi |
139 make dvi || fail "DVI document for $DOC failed!" |
140 [ -n "$PDFLATEX" ] && make clean pdf |
140 ([ -n "$PDFLATEX" ] && make clean pdf) || fail "PDF document for $DOC failed!" |
141 cd .. |
141 cd .. |
142 done |
142 done |
143 |
143 |
144 |
144 |
145 # prepare dist dir for release |
145 # prepare dist dir for release |
146 |
146 |
147 echo "###" |
147 echo "###" |
148 echo "### Preparing distribution ..." |
148 echo "### Preparing distribution ..." |
149 echo "###" |
149 echo "###" |
150 |
150 |
151 cd "$DISTBASE/$DISTNAME" |
151 cd "$DISTBASE/$DISTNAME" || fail "Something is wrong: dist directory doesn't exist!" |
152 |
152 |
153 cp -R Admin/page .. |
153 cp -R Admin/page .. |
154 cp Distribution/doc/Contents ../page |
154 cp Distribution/doc/Contents ../page |
155 cp Distribution/lib/logo/isabelle.gif ../page/main-content |
155 cp Distribution/lib/logo/isabelle.gif ../page/main-content |
156 cp Distribution/lib/logo/isabelle.gif ../page/dist-content |
156 cp Distribution/lib/logo/isabelle.gif ../page/dist-content |
165 mv $LOGICS src |
165 mv $LOGICS src |
166 |
166 |
167 mv Distribution/* . |
167 mv Distribution/* . |
168 rmdir Distribution |
168 rmdir Distribution |
169 |
169 |
170 ( cd lib/browser; make; ) |
170 ( cd lib/browser; make; ) || fail "Graph browser build failed!" |
171 |
171 |
172 cp doc/isabelle*.eps lib/logo |
172 cp doc/isabelle*.eps lib/logo |
173 |
173 |
174 |
174 |
175 if [ -n "$UNOFFICIAL" ]; then |
175 if [ -n "$UNOFFICIAL" ]; then |