equal
deleted
inserted
replaced
8 ## global settings |
8 ## global settings |
9 |
9 |
10 LOGICS="CCL CTT Cube FOL FOLP HOL HOLCF LCF Provers Pure Sequents TFL ZF" |
10 LOGICS="CCL CTT Cube FOL FOLP HOL HOLCF LCF Provers Pure Sequents TFL ZF" |
11 |
11 |
12 CVSROOT=/usr/proj/isabelle-repository/archive |
12 CVSROOT=/usr/proj/isabelle-repository/archive |
13 DISTBASE=~/tmp/isadist |
13 DISTPREFIX=~/tmp/isadist |
14 |
14 |
15 |
15 |
16 ## diagnostics |
16 ## diagnostics |
17 |
17 |
18 PRG=$(basename $0) |
18 PRG=$(basename $0) |
87 DISTVERSION="$DISTNAME: $DISTDATE" |
87 DISTVERSION="$DISTNAME: $DISTDATE" |
88 EXPORT="export -r $VERSION" |
88 EXPORT="export -r $VERSION" |
89 UNOFFICIAL="" |
89 UNOFFICIAL="" |
90 fi |
90 fi |
91 |
91 |
|
92 DISTBASE=$DISTPREFIX/dist-$DISTNAME |
92 mkdir -p $DISTBASE || fail "Unable to create distribution base dir $DISTBASE!" |
93 mkdir -p $DISTBASE || fail "Unable to create distribution base dir $DISTBASE!" |
93 [ -e $DISTBASE/$DISTNAME ] && fail "$DISTBASE/$DISTNAME already exists!" |
94 [ -e $DISTBASE/$DISTNAME ] && fail "$DISTBASE/$DISTNAME already exists!" |
94 [ -e $DISTBASE/pdf/$DISTNAME ] && fail "$DISTBASE/pdf/$DISTNAME already exists!" |
95 [ -e $DISTBASE/pdf/$DISTNAME ] && fail "$DISTBASE/pdf/$DISTNAME already exists!" |
95 |
96 |
96 |
97 |
118 make dvi |
119 make dvi |
119 [ -n "$PDFLATEX" ] && make clean pdf |
120 [ -n "$PDFLATEX" ] && make clean pdf |
120 cd .. |
121 cd .. |
121 done |
122 done |
122 |
123 |
123 # make web pages |
124 |
|
125 # make WWW pages |
124 |
126 |
125 export DISTNAME |
127 export DISTNAME |
126 (cd $DISTBASE/$DISTNAME/Admin/page; make clean; make dist; cd dist; cp * $DISTBASE) |
128 (cd $DISTBASE/$DISTNAME/Admin/page; make clean; make dist; cd dist; cp * $DISTBASE) |
127 |
129 |
128 |
130 |
131 cd $DISTBASE/$DISTNAME |
133 cd $DISTBASE/$DISTNAME |
132 |
134 |
133 MOVE=$(find Doc \( -type f -a \( -name \*.dvi -o -name \*.eps -o -name \*.ps -o -name \*.pdf \) -a -print \) | grep -v 'gfx/.*pdf') |
135 MOVE=$(find Doc \( -type f -a \( -name \*.dvi -o -name \*.eps -o -name \*.ps -o -name \*.pdf \) -a -print \) | grep -v 'gfx/.*pdf') |
134 mv -f $MOVE Distribution/doc |
136 mv -f $MOVE Distribution/doc |
135 rm Distribution/doc/Isa-logics.eps |
137 rm Distribution/doc/Isa-logics.eps |
136 rm -rf Admin Doc Tools |
138 rm -rf Doc Tools |
137 |
139 |
138 mkdir src contrib |
140 mkdir src contrib |
139 mv $LOGICS src |
141 mv $LOGICS src |
140 |
142 |
141 mv Distribution/* . |
143 mv Distribution/* . |
160 perl -pi -e "s/{ISABELLE}/$DISTNAME/g;" lib/html/index.html |
162 perl -pi -e "s/{ISABELLE}/$DISTNAME/g;" lib/html/index.html |
161 perl -pi -e "s/Isabelle repository/$DISTVERSION/" src/Pure/ROOT.ML |
163 perl -pi -e "s/Isabelle repository/$DISTVERSION/" src/Pure/ROOT.ML |
162 perl -pi -e "s/the internal repository version of Isabelle/$DISTVERSION/" README.html |
164 perl -pi -e "s/the internal repository version of Isabelle/$DISTVERSION/" README.html |
163 lynx -dump README.html >README |
165 lynx -dump README.html >README |
164 |
166 |
|
167 ( cd src; ../Admin/maketags; ) |
|
168 rm -rf Admin |
|
169 |
165 |
170 |
166 # create archive |
171 # create archive |
167 |
172 |
168 cd $DISTBASE |
173 cd $DISTBASE |
169 |
174 |