Admin/makedist
author wenzelm
Fri, 01 Sep 2000 17:37:29 +0200
changeset 9782 63b195acdaaa
parent 9052 7db48fe85b05
child 9797 49e55730eb7a
permissions -rwxr-xr-x
cleanup dist sources afterwards; tmp version;
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3060
7c3564de392e removed -norc;
wenzelm
parents: 2970
diff changeset
     1
#!/bin/bash
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
     2
#
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
     3
# $Id$
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
     4
#
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
     5
# makedist -- make Isabelle distribution.
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
     6
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
     7
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
     8
## global settings
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
     9
7993
wenzelm
parents: 7859
diff changeset
    10
LOGICS="CCL CTT Cube FOL FOLP HOL HOLCF LCF Provers Pure Sequents TFL ZF"
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    11
5171
cca9a908c270 fixed CVSROOT;
wenzelm
parents: 5169
diff changeset
    12
CVSROOT=/usr/proj/isabelle-repository/archive
9052
7db48fe85b05 provide TAGS file for Isabelle sources;
wenzelm
parents: 8810
diff changeset
    13
DISTPREFIX=~/tmp/isadist
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    14
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    15
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    16
## diagnostics
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    17
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    18
PRG=$(basename $0)
8059
9128e934bf51 new web pages integrated
kleing
parents: 7993
diff changeset
    19
THIS=$(cd $(dirname "$0"); echo $PWD)
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    20
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    21
function usage()
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    22
{
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    23
  echo
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    24
  echo "Usage: $PRG VERSION"
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    25
  echo
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    26
  cat <<EOF
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    27
  Make Isabelle distribution from the master sources at TUM.
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    28
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    29
  VERSION may be either a tag like "Isabelle94-XX" that specifies the
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    30
  release to be exported from the repository, or "-" to checkout the
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    31
  current sources as an unofficial release.
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    32
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    33
  Checklist for official releases (before running this script):
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    34
5817
02f4ff005a78 Check release name and date in NEWS!
wenzelm
parents: 5769
diff changeset
    35
    * Check release name and date in NEWS!
2668
72a962676702 fixed Id comment;
wenzelm
parents: 2667
diff changeset
    36
    * Check that README files are up to date (should have Id: lines).
5769
6a422b22ba02 tuned checklist;
wenzelm
parents: 5727
diff changeset
    37
    * Check Admin/index.html.
2970
4ed0b27e482d added fixencoding note;
wenzelm
parents: 2829
diff changeset
    38
    * Make sure that encoding info is consistent (fixencoding)!
3186
57be77ca36ff tuned comment;
wenzelm
parents: 3169
diff changeset
    39
    * Check ML_SYSTEM defaults!
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    40
EOF
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    41
  #Wicked! We just won't tell other users ...
7859
c67eb6ed6a87 berghofe;
wenzelm
parents: 7781
diff changeset
    42
  if [ $LOGNAME = paulson -o $LOGNAME = nipkow -o $LOGNAME = wenzelm -o $LOGNAME = berghofe ]; then
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    43
    cat <<EOF
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    44
    * Tag the current repository version, e.g.:
4542
wenzelm
parents: 4411
diff changeset
    45
        cvs -d $CVSROOT rtag Isabelle94-XX isabelle
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    46
      PLEASE DON'T DO THIS UNLESS YOU KNOW WHAT YOU'RE DOING!
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    47
EOF
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    48
  fi
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    49
  cat <<EOF
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    50
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    51
  After the distribution has been created succesfully, you might want
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    52
  to run some makeall tests using different ML systems.
5727
1b708bfb0c1e fixed index.html;
wenzelm
parents: 5725
diff changeset
    53
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    54
EOF
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    55
  exit 1
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    56
}
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    57
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    58
function fail()
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    59
{
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    60
  echo "$1" >&2
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    61
  exit 2
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    62
}
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    63
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    64
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    65
## process command line
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    66
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    67
[ $# -ne 1 ] && usage
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    68
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    69
VERSION="$1"
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    70
shift
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    71
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    72
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    73
## main
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    74
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    75
# dist version
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    76
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    77
DATE=$(date "+%d-%b-%Y")
4979
8b94f31a3022 README, Pure/ROOT.ML: version set automatically;
wenzelm
parents: 4550
diff changeset
    78
DISTDATE=$(date "+%B %Y")
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    79
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    80
if [ "$VERSION" = "-" ]; then
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    81
  DISTNAME=Isabelle_$DATE
4982
6f96354267e0 tuned dist version;
wenzelm
parents: 4979
diff changeset
    82
  DISTVERSION="$DISTNAME"
3363
8557c2a1750c fixed -P (checkout only);
wenzelm
parents: 3305
diff changeset
    83
  EXPORT="checkout -P"
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    84
  UNOFFICIAL=true
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    85
else
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    86
  DISTNAME="$VERSION"
4982
6f96354267e0 tuned dist version;
wenzelm
parents: 4979
diff changeset
    87
  DISTVERSION="$DISTNAME: $DISTDATE"
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    88
  EXPORT="export -r $VERSION"
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    89
  UNOFFICIAL=""
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    90
fi
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    91
9052
7db48fe85b05 provide TAGS file for Isabelle sources;
wenzelm
parents: 8810
diff changeset
    92
DISTBASE=$DISTPREFIX/dist-$DISTNAME
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    93
mkdir -p $DISTBASE || fail "Unable to create distribution base dir $DISTBASE!"
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    94
[ -e $DISTBASE/$DISTNAME ] && fail "$DISTBASE/$DISTNAME already exists!"
6748
f1f70344b749 separate archive for pdf docs;
wenzelm
parents: 6630
diff changeset
    95
[ -e $DISTBASE/pdf/$DISTNAME ] && fail "$DISTBASE/pdf/$DISTNAME already exists!"
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    96
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    97
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    98
# export from repository
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    99
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   100
echo
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   101
echo "Exporting $DISTNAME from repository. Please be patient ..."
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   102
echo
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   103
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   104
cd $DISTBASE
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   105
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   106
export CVSROOT
3363
8557c2a1750c fixed -P (checkout only);
wenzelm
parents: 3305
diff changeset
   107
cvs -f -q $EXPORT -d $DISTNAME isabelle
5622
5b56804edf85 tuned rm CVS;
wenzelm
parents: 5385
diff changeset
   108
find . -name CVS -exec rm -rf {} \;
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   109
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   110
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   111
# make docs
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   112
3169
c13e54126fcd improved doc stuff;
wenzelm
parents: 3099
diff changeset
   113
cd $DISTBASE/$DISTNAME/Doc
6630
5f810292c030 make pdf;
wenzelm
parents: 6304
diff changeset
   114
PDFLATEX=$(type -path pdflatex)
3169
c13e54126fcd improved doc stuff;
wenzelm
parents: 3099
diff changeset
   115
c13e54126fcd improved doc stuff;
wenzelm
parents: 3099
diff changeset
   116
for DOC in $(cat Contents)
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   117
do
3169
c13e54126fcd improved doc stuff;
wenzelm
parents: 3099
diff changeset
   118
  cd $DOC
6630
5f810292c030 make pdf;
wenzelm
parents: 6304
diff changeset
   119
  make dvi
5f810292c030 make pdf;
wenzelm
parents: 6304
diff changeset
   120
  [ -n "$PDFLATEX" ] && make clean pdf
3169
c13e54126fcd improved doc stuff;
wenzelm
parents: 3099
diff changeset
   121
  cd ..
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   122
done
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   123
9052
7db48fe85b05 provide TAGS file for Isabelle sources;
wenzelm
parents: 8810
diff changeset
   124
7db48fe85b05 provide TAGS file for Isabelle sources;
wenzelm
parents: 8810
diff changeset
   125
# make WWW pages
8059
9128e934bf51 new web pages integrated
kleing
parents: 7993
diff changeset
   126
9128e934bf51 new web pages integrated
kleing
parents: 7993
diff changeset
   127
export DISTNAME
9128e934bf51 new web pages integrated
kleing
parents: 7993
diff changeset
   128
(cd $DISTBASE/$DISTNAME/Admin/page; make clean; make dist; cd dist; cp * $DISTBASE)
9128e934bf51 new web pages integrated
kleing
parents: 7993
diff changeset
   129
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   130
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   131
# prepare dist dir for release
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   132
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   133
cd $DISTBASE/$DISTNAME
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   134
6758
8fc15183f549 find -print;
wenzelm
parents: 6750
diff changeset
   135
MOVE=$(find Doc \( -type f -a \( -name \*.dvi -o -name \*.eps -o -name \*.ps -o -name \*.pdf \) -a -print \) | grep -v 'gfx/.*pdf')
6630
5f810292c030 make pdf;
wenzelm
parents: 6304
diff changeset
   136
mv -f $MOVE Distribution/doc
3305
d8114e93ef66 fixed doc;
wenzelm
parents: 3281
diff changeset
   137
rm Distribution/doc/Isa-logics.eps
9052
7db48fe85b05 provide TAGS file for Isabelle sources;
wenzelm
parents: 8810
diff changeset
   138
rm -rf Doc Tools
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   139
7115
37178f53ed4d mkdir contrib;
wenzelm
parents: 6958
diff changeset
   140
mkdir src contrib
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   141
mv $LOGICS src
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   142
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   143
mv Distribution/* .
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   144
rmdir Distribution
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   145
4180
wenzelm
parents: 4176
diff changeset
   146
( cd lib/browser; make; )
3638
2b67561c6488 Added some commands for building theory browser.
berghofe
parents: 3363
diff changeset
   147
5385
8fc3828fdc8a eps logis;
wenzelm
parents: 5172
diff changeset
   148
cp doc/isabelle*.eps lib/logo
8fc3828fdc8a eps logis;
wenzelm
parents: 5172
diff changeset
   149
3638
2b67561c6488 Added some commands for building theory browser.
berghofe
parents: 3363
diff changeset
   150
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   151
if [ -n "$UNOFFICIAL" ]; then
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   152
  {
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   153
    echo
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   154
    echo "IMPORTANT NOTE"
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   155
    echo "=============="
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   156
    echo
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   157
    echo "This is an unofficial release of Isabelle, created by $LOGNAME $DATE."
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   158
    echo
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   159
  } >UNOFFICIAL
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   160
fi
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   161
8810
d0eae42f6d12 removed index2;
wenzelm
parents: 8059
diff changeset
   162
perl -pi -e "s/{ISABELLE}/$DISTNAME/g;" lib/html/index.html
4986
d4f257d3445a tuned msgs;
wenzelm
parents: 4982
diff changeset
   163
perl -pi -e "s/Isabelle repository/$DISTVERSION/" src/Pure/ROOT.ML
d4f257d3445a tuned msgs;
wenzelm
parents: 4982
diff changeset
   164
perl -pi -e "s/the internal repository version of Isabelle/$DISTVERSION/" README.html
3257
4e3724e0659f README generation;
wenzelm
parents: 3186
diff changeset
   165
lynx -dump README.html >README
4e3724e0659f README generation;
wenzelm
parents: 3186
diff changeset
   166
9052
7db48fe85b05 provide TAGS file for Isabelle sources;
wenzelm
parents: 8810
diff changeset
   167
( cd src; ../Admin/maketags; )
7db48fe85b05 provide TAGS file for Isabelle sources;
wenzelm
parents: 8810
diff changeset
   168
rm -rf Admin
7db48fe85b05 provide TAGS file for Isabelle sources;
wenzelm
parents: 8810
diff changeset
   169
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   170
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   171
# create archive
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   172
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   173
cd $DISTBASE
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   174
2794
2d259a41cd77 uncommented chown / chmod (again);
wenzelm
parents: 2776
diff changeset
   175
chown -R $LOGNAME:isabelle $DISTNAME
2d259a41cd77 uncommented chown / chmod (again);
wenzelm
parents: 2776
diff changeset
   176
chmod -R u+w $DISTNAME
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   177
6748
f1f70344b749 separate archive for pdf docs;
wenzelm
parents: 6630
diff changeset
   178
TAR=tar
f1f70344b749 separate archive for pdf docs;
wenzelm
parents: 6630
diff changeset
   179
type -path gtar >/dev/null && TAR=gtar
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   180
6748
f1f70344b749 separate archive for pdf docs;
wenzelm
parents: 6630
diff changeset
   181
mkdir -p pdf/$DISTNAME/doc
f1f70344b749 separate archive for pdf docs;
wenzelm
parents: 6630
diff changeset
   182
mv $DISTNAME/doc/*.pdf pdf/$DISTNAME/doc
f1f70344b749 separate archive for pdf docs;
wenzelm
parents: 6630
diff changeset
   183
f1f70344b749 separate archive for pdf docs;
wenzelm
parents: 6630
diff changeset
   184
$TAR cf $DISTNAME.tar $DISTNAME
f1f70344b749 separate archive for pdf docs;
wenzelm
parents: 6630
diff changeset
   185
( cd pdf; $TAR cf ../${DISTNAME}_pdf.tar $DISTNAME; )
f1f70344b749 separate archive for pdf docs;
wenzelm
parents: 6630
diff changeset
   186
6750
0681dd2211b5 move pdfs back into dist;
wenzelm
parents: 6748
diff changeset
   187
mv pdf/$DISTNAME/doc/*.pdf $DISTNAME/doc
6958
2ed4b761d6d5 rmdir pdf;
wenzelm
parents: 6758
diff changeset
   188
rmdir pdf/$DISTNAME/doc pdf/$DISTNAME pdf
6750
0681dd2211b5 move pdfs back into dist;
wenzelm
parents: 6748
diff changeset
   189
4549
aa02667fb3da automatic index.html patch;
wenzelm
parents: 4548
diff changeset
   190
gzip $DISTNAME.tar
6748
f1f70344b749 separate archive for pdf docs;
wenzelm
parents: 6630
diff changeset
   191
gzip ${DISTNAME}_pdf.tar
4549
aa02667fb3da automatic index.html patch;
wenzelm
parents: 4548
diff changeset
   192
6304
9a82e1c3d9da fixed again;
wenzelm
parents: 6296
diff changeset
   193
9782
63b195acdaaa cleanup dist sources afterwards;
wenzelm
parents: 9052
diff changeset
   194
# cleanup dist
63b195acdaaa cleanup dist sources afterwards;
wenzelm
parents: 9052
diff changeset
   195
63b195acdaaa cleanup dist sources afterwards;
wenzelm
parents: 9052
diff changeset
   196
mv $DISTNAME ${DISTNAME}-old
63b195acdaaa cleanup dist sources afterwards;
wenzelm
parents: 9052
diff changeset
   197
mkdir $DISTNAME
63b195acdaaa cleanup dist sources afterwards;
wenzelm
parents: 9052
diff changeset
   198
63b195acdaaa cleanup dist sources afterwards;
wenzelm
parents: 9052
diff changeset
   199
mv ${DISTNAME}-old/lib/logo/isabelle.gif .
63b195acdaaa cleanup dist sources afterwards;
wenzelm
parents: 9052
diff changeset
   200
mv ${DISTNAME}-old/README.html ${DISTNAME}-old/INSTALL $DISTNAME
63b195acdaaa cleanup dist sources afterwards;
wenzelm
parents: 9052
diff changeset
   201
mkdir $DISTNAME/doc && \
63b195acdaaa cleanup dist sources afterwards;
wenzelm
parents: 9052
diff changeset
   202
  mv ${DISTNAME}-old/doc/*.pdf ${DISTNAME}-old/doc/Contents $DISTNAME/doc
63b195acdaaa cleanup dist sources afterwards;
wenzelm
parents: 9052
diff changeset
   203
63b195acdaaa cleanup dist sources afterwards;
wenzelm
parents: 9052
diff changeset
   204
rm -rf ${DISTNAME}-old
63b195acdaaa cleanup dist sources afterwards;
wenzelm
parents: 9052
diff changeset
   205
63b195acdaaa cleanup dist sources afterwards;
wenzelm
parents: 9052
diff changeset
   206
8059
9128e934bf51 new web pages integrated
kleing
parents: 7993
diff changeset
   207
# prepare web pages
9128e934bf51 new web pages integrated
kleing
parents: 7993
diff changeset
   208
9782
63b195acdaaa cleanup dist sources afterwards;
wenzelm
parents: 9052
diff changeset
   209
#FIXME
63b195acdaaa cleanup dist sources afterwards;
wenzelm
parents: 9052
diff changeset
   210
#$THIS/filesizes -norpm
6304
9a82e1c3d9da fixed again;
wenzelm
parents: 6296
diff changeset
   211
9a82e1c3d9da fixed again;
wenzelm
parents: 6296
diff changeset
   212
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   213
# final note
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   214
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   215
echo
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   216
echo "That's it. You'll find the distribution in $DISTBASE."
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   217
echo