Admin/makedist
author wenzelm
Fri, 08 Mar 2002 16:24:06 +0100
changeset 13049 ce180e5b7fa0
parent 12986 58cd2ca93edc
child 13050 04deb0c8dcbe
permissions -rwxr-xr-x
tuned;
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
12721
226fc0e2e7e3 #!/usr/bin/env bash;
wenzelm
parents: 11981
diff changeset
     1
#!/usr/bin/env 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
#
10077
wenzelm
parents: 10068
diff changeset
     5
# makedist -- make Isabelle source distribution.
2667
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
10533
909c473542f9 fixed hostname;
wenzelm
parents: 10532
diff changeset
    12
case $(hostname) in
11981
wenzelm
parents: 11392
diff changeset
    13
  *lapbroy*)
wenzelm
parents: 11392
diff changeset
    14
    export CVSROOT=sunbroy1:/usr/proj/isabelle-repository/archive
wenzelm
parents: 11392
diff changeset
    15
    ;;
10532
042f67eea015 detect CVSROOT;
wenzelm
parents: 10169
diff changeset
    16
  *broy*)
042f67eea015 detect CVSROOT;
wenzelm
parents: 10169
diff changeset
    17
    export CVSROOT=/usr/proj/isabelle-repository/archive
042f67eea015 detect CVSROOT;
wenzelm
parents: 10169
diff changeset
    18
    ;;
042f67eea015 detect CVSROOT;
wenzelm
parents: 10169
diff changeset
    19
  *.cl.cam.ac.uk)
042f67eea015 detect CVSROOT;
wenzelm
parents: 10169
diff changeset
    20
    export CVSROOT=sunbroy1.informatik.tu-muenchen.de:/usr/proj/isabelle-repository/archive
042f67eea015 detect CVSROOT;
wenzelm
parents: 10169
diff changeset
    21
    ;;
042f67eea015 detect CVSROOT;
wenzelm
parents: 10169
diff changeset
    22
esac
042f67eea015 detect CVSROOT;
wenzelm
parents: 10169
diff changeset
    23
9052
7db48fe85b05 provide TAGS file for Isabelle sources;
wenzelm
parents: 8810
diff changeset
    24
DISTPREFIX=~/tmp/isadist
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    25
9797
49e55730eb7a provide "--" argument: tentative release;
wenzelm
parents: 9782
diff changeset
    26
umask 022
49e55730eb7a provide "--" argument: tentative release;
wenzelm
parents: 9782
diff changeset
    27
9920
9734f2717203 improved WWW page generation (still somewhat experimental);
wenzelm
parents: 9880
diff changeset
    28
TAR=tar
9734f2717203 improved WWW page generation (still somewhat experimental);
wenzelm
parents: 9880
diff changeset
    29
type -path gtar >/dev/null && TAR=gtar
9734f2717203 improved WWW page generation (still somewhat experimental);
wenzelm
parents: 9880
diff changeset
    30
9734f2717203 improved WWW page generation (still somewhat experimental);
wenzelm
parents: 9880
diff changeset
    31
FIND=find
9734f2717203 improved WWW page generation (still somewhat experimental);
wenzelm
parents: 9880
diff changeset
    32
type -path gfind >/dev/null && FIND=gfind
9734f2717203 improved WWW page generation (still somewhat experimental);
wenzelm
parents: 9880
diff changeset
    33
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    34
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    35
## diagnostics
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    36
9797
49e55730eb7a provide "--" argument: tentative release;
wenzelm
parents: 9782
diff changeset
    37
PRG=$(basename "$0")
49e55730eb7a provide "--" argument: tentative release;
wenzelm
parents: 9782
diff changeset
    38
THIS=$(cd $(dirname "$0"); echo "$PWD")
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    39
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    40
function usage()
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    41
{
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    42
  cat <<EOF
11062
wenzelm
parents: 10928
diff changeset
    43
wenzelm
parents: 10928
diff changeset
    44
Usage: $PRG VERSION
wenzelm
parents: 10928
diff changeset
    45
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    46
  Make Isabelle distribution from the master sources at TUM.
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    47
9797
49e55730eb7a provide "--" argument: tentative release;
wenzelm
parents: 9782
diff changeset
    48
  VERSION may be either a tag like "Isabelle99-XX" that specifies the
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    49
  release to be exported from the repository, or "-" to checkout the
9797
49e55730eb7a provide "--" argument: tentative release;
wenzelm
parents: 9782
diff changeset
    50
  current sources as an unofficial release, or "--" to produce a
49e55730eb7a provide "--" argument: tentative release;
wenzelm
parents: 9782
diff changeset
    51
  tentative release from the present copy of the Isabelle repository.
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    52
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    53
  Checklist for official releases (before running this script):
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    54
11062
wenzelm
parents: 10928
diff changeset
    55
    * Check Admin/page contents.
wenzelm
parents: 10928
diff changeset
    56
    * Check ANNOUNCE, README, INSTALL, NEWS.
wenzelm
parents: 10928
diff changeset
    57
    * Try "isatool makeall all" with Poly/ML, SML/NJ, etc.
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    58
    * Tag the current repository version, e.g.:
10169
wenzelm
parents: 10112
diff changeset
    59
        cvs -d /usr/proj/isabelle-repository/archive rtag Isabelle99-X isabelle
11062
wenzelm
parents: 10928
diff changeset
    60
      PLEASE DO NOT DO THIS UNLESS YOU KNOW WHAT YOU ARE DOING!
5727
1b708bfb0c1e fixed index.html;
wenzelm
parents: 5725
diff changeset
    61
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    62
EOF
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    63
  exit 1
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    64
}
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    65
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    66
function fail()
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    67
{
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    68
  echo "$1" >&2
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    69
  exit 2
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    70
}
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
## process command line
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    74
9797
49e55730eb7a provide "--" argument: tentative release;
wenzelm
parents: 9782
diff changeset
    75
[ "$#" -ne 1 ] && usage
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    76
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    77
VERSION="$1"
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    78
shift
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    79
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    80
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    81
## main
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    82
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    83
# dist version
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    84
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    85
DATE=$(date "+%d-%b-%Y")
4979
8b94f31a3022 README, Pure/ROOT.ML: version set automatically;
wenzelm
parents: 4550
diff changeset
    86
DISTDATE=$(date "+%B %Y")
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    87
9797
49e55730eb7a provide "--" argument: tentative release;
wenzelm
parents: 9782
diff changeset
    88
if [ "$VERSION" = "--" ]; then
9925
wenzelm
parents: 9920
diff changeset
    89
  DISTNAME="Isabelle_$DATE"
4982
6f96354267e0 tuned dist version;
wenzelm
parents: 4979
diff changeset
    90
  DISTVERSION="$DISTNAME"
9797
49e55730eb7a provide "--" argument: tentative release;
wenzelm
parents: 9782
diff changeset
    91
  EXPORT="$THIS/cvs-copy $THIS/.. $DISTNAME"
9925
wenzelm
parents: 9920
diff changeset
    92
  UNOFFICIAL="unofficial test"
9797
49e55730eb7a provide "--" argument: tentative release;
wenzelm
parents: 9782
diff changeset
    93
elif [ "$VERSION" = "-" ]; then
49e55730eb7a provide "--" argument: tentative release;
wenzelm
parents: 9782
diff changeset
    94
  DISTNAME="Isabelle_$DATE"
49e55730eb7a provide "--" argument: tentative release;
wenzelm
parents: 9782
diff changeset
    95
  DISTVERSION="$DISTNAME"
49e55730eb7a provide "--" argument: tentative release;
wenzelm
parents: 9782
diff changeset
    96
  EXPORT="cvs -f -q checkout -P -d $DISTNAME isabelle"
9925
wenzelm
parents: 9920
diff changeset
    97
  UNOFFICIAL="unofficial"
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    98
else
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    99
  DISTNAME="$VERSION"
4982
6f96354267e0 tuned dist version;
wenzelm
parents: 4979
diff changeset
   100
  DISTVERSION="$DISTNAME: $DISTDATE"
9797
49e55730eb7a provide "--" argument: tentative release;
wenzelm
parents: 9782
diff changeset
   101
  EXPORT="cvs -f -q export -r $VERSION -d $DISTNAME isabelle"
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   102
  UNOFFICIAL=""
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   103
fi
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   104
9797
49e55730eb7a provide "--" argument: tentative release;
wenzelm
parents: 9782
diff changeset
   105
DISTBASE="$DISTPREFIX/dist-$DISTNAME"
49e55730eb7a provide "--" argument: tentative release;
wenzelm
parents: 9782
diff changeset
   106
mkdir -p "$DISTBASE" || fail "Unable to create distribution base dir $DISTBASE!"
49e55730eb7a provide "--" argument: tentative release;
wenzelm
parents: 9782
diff changeset
   107
[ -e "$DISTBASE/$DISTNAME" ] && fail "$DISTBASE/$DISTNAME already exists!"
49e55730eb7a provide "--" argument: tentative release;
wenzelm
parents: 9782
diff changeset
   108
[ -e "$DISTBASE/pdf/$DISTNAME" ] && fail "$DISTBASE/pdf/$DISTNAME already exists!"
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   109
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   110
9797
49e55730eb7a provide "--" argument: tentative release;
wenzelm
parents: 9782
diff changeset
   111
# export repository
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   112
9797
49e55730eb7a provide "--" argument: tentative release;
wenzelm
parents: 9782
diff changeset
   113
echo "###"
49e55730eb7a provide "--" argument: tentative release;
wenzelm
parents: 9782
diff changeset
   114
echo "### Exporting $DISTNAME ..."
49e55730eb7a provide "--" argument: tentative release;
wenzelm
parents: 9782
diff changeset
   115
echo "###"
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   116
9797
49e55730eb7a provide "--" argument: tentative release;
wenzelm
parents: 9782
diff changeset
   117
cd "$DISTBASE"
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   118
9797
49e55730eb7a provide "--" argument: tentative release;
wenzelm
parents: 9782
diff changeset
   119
$EXPORT
9920
9734f2717203 improved WWW page generation (still somewhat experimental);
wenzelm
parents: 9880
diff changeset
   120
$FIND . -name CVS -print | xargs rm -rf
12986
58cd2ca93edc delete .cvsignore;
wenzelm
parents: 12721
diff changeset
   121
$FIND . -name .cvsignore -print | xargs rm -rf
9920
9734f2717203 improved WWW page generation (still somewhat experimental);
wenzelm
parents: 9880
diff changeset
   122
$FIND . "(" -type d -a -empty ")" -print | xargs rm -rf
9734f2717203 improved WWW page generation (still somewhat experimental);
wenzelm
parents: 9880
diff changeset
   123
$FIND . "(" -type d -a -empty ")" -print | xargs rm -rf
9734f2717203 improved WWW page generation (still somewhat experimental);
wenzelm
parents: 9880
diff changeset
   124
$FIND . "(" -type d -a -empty ")" -print | xargs rm -rf
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   125
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   126
9797
49e55730eb7a provide "--" argument: tentative release;
wenzelm
parents: 9782
diff changeset
   127
# build docs
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   128
9797
49e55730eb7a provide "--" argument: tentative release;
wenzelm
parents: 9782
diff changeset
   129
echo "###"
49e55730eb7a provide "--" argument: tentative release;
wenzelm
parents: 9782
diff changeset
   130
echo "### Building docs ..."
49e55730eb7a provide "--" argument: tentative release;
wenzelm
parents: 9782
diff changeset
   131
echo "###"
49e55730eb7a provide "--" argument: tentative release;
wenzelm
parents: 9782
diff changeset
   132
49e55730eb7a provide "--" argument: tentative release;
wenzelm
parents: 9782
diff changeset
   133
cd "$DISTBASE/$DISTNAME/Doc"
6630
5f810292c030 make pdf;
wenzelm
parents: 6304
diff changeset
   134
PDFLATEX=$(type -path pdflatex)
3169
c13e54126fcd improved doc stuff;
wenzelm
parents: 3099
diff changeset
   135
c13e54126fcd improved doc stuff;
wenzelm
parents: 3099
diff changeset
   136
for DOC in $(cat Contents)
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   137
do
9797
49e55730eb7a provide "--" argument: tentative release;
wenzelm
parents: 9782
diff changeset
   138
  cd "$DOC"
9925
wenzelm
parents: 9920
diff changeset
   139
  make dvi
wenzelm
parents: 9920
diff changeset
   140
  [ -n "$PDFLATEX" ] && make clean pdf
3169
c13e54126fcd improved doc stuff;
wenzelm
parents: 3099
diff changeset
   141
  cd ..
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   142
done
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   143
9052
7db48fe85b05 provide TAGS file for Isabelle sources;
wenzelm
parents: 8810
diff changeset
   144
9920
9734f2717203 improved WWW page generation (still somewhat experimental);
wenzelm
parents: 9880
diff changeset
   145
# prepare dist dir for release
8059
9128e934bf51 new web pages integrated
kleing
parents: 7993
diff changeset
   146
9920
9734f2717203 improved WWW page generation (still somewhat experimental);
wenzelm
parents: 9880
diff changeset
   147
echo "###"
9734f2717203 improved WWW page generation (still somewhat experimental);
wenzelm
parents: 9880
diff changeset
   148
echo "### Preparing distribution ..."
9734f2717203 improved WWW page generation (still somewhat experimental);
wenzelm
parents: 9880
diff changeset
   149
echo "###"
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   150
9797
49e55730eb7a provide "--" argument: tentative release;
wenzelm
parents: 9782
diff changeset
   151
cd "$DISTBASE/$DISTNAME"
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   152
9925
wenzelm
parents: 9920
diff changeset
   153
cp -R Admin/page ..
wenzelm
parents: 9920
diff changeset
   154
cp Distribution/doc/Contents ../page
9920
9734f2717203 improved WWW page generation (still somewhat experimental);
wenzelm
parents: 9880
diff changeset
   155
cp Distribution/lib/logo/isabelle.gif ../page/main-content
9734f2717203 improved WWW page generation (still somewhat experimental);
wenzelm
parents: 9880
diff changeset
   156
cp Distribution/lib/logo/isabelle.gif ../page/dist-content
9734f2717203 improved WWW page generation (still somewhat experimental);
wenzelm
parents: 9880
diff changeset
   157
echo "$DISTNAME" > ../page/DISTNAME
9734f2717203 improved WWW page generation (still somewhat experimental);
wenzelm
parents: 9880
diff changeset
   158
9734f2717203 improved WWW page generation (still somewhat experimental);
wenzelm
parents: 9880
diff changeset
   159
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
   160
mv -f $MOVE Distribution/doc
3305
d8114e93ef66 fixed doc;
wenzelm
parents: 3281
diff changeset
   161
rm Distribution/doc/Isa-logics.eps
9052
7db48fe85b05 provide TAGS file for Isabelle sources;
wenzelm
parents: 8810
diff changeset
   162
rm -rf Doc Tools
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   163
7115
37178f53ed4d mkdir contrib;
wenzelm
parents: 6958
diff changeset
   164
mkdir src contrib
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   165
mv $LOGICS src
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   166
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   167
mv Distribution/* .
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   168
rmdir Distribution
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   169
4180
wenzelm
parents: 4176
diff changeset
   170
( cd lib/browser; make; )
3638
2b67561c6488 Added some commands for building theory browser.
berghofe
parents: 3363
diff changeset
   171
5385
8fc3828fdc8a eps logis;
wenzelm
parents: 5172
diff changeset
   172
cp doc/isabelle*.eps lib/logo
8fc3828fdc8a eps logis;
wenzelm
parents: 5172
diff changeset
   173
3638
2b67561c6488 Added some commands for building theory browser.
berghofe
parents: 3363
diff changeset
   174
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   175
if [ -n "$UNOFFICIAL" ]; then
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   176
  {
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   177
    echo
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   178
    echo "IMPORTANT NOTE"
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   179
    echo "=============="
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   180
    echo
9925
wenzelm
parents: 9920
diff changeset
   181
    echo "This is an $UNOFFICIAL release of Isabelle, created by $LOGNAME $DATE."
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   182
    echo
9925
wenzelm
parents: 9920
diff changeset
   183
  } >ANNOUNCE
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   184
fi
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   185
8810
d0eae42f6d12 removed index2;
wenzelm
parents: 8059
diff changeset
   186
perl -pi -e "s/{ISABELLE}/$DISTNAME/g;" lib/html/index.html
9959
4a2ae974043d "Isabelle repository version";
wenzelm
parents: 9934
diff changeset
   187
perl -pi -e "s/Isabelle repository version/$DISTVERSION/" src/Pure/ROOT.ML
4986
d4f257d3445a tuned msgs;
wenzelm
parents: 4982
diff changeset
   188
perl -pi -e "s/the internal repository version of Isabelle/$DISTVERSION/" README.html
3257
4e3724e0659f README generation;
wenzelm
parents: 3186
diff changeset
   189
lynx -dump README.html >README
4e3724e0659f README generation;
wenzelm
parents: 3186
diff changeset
   190
9052
7db48fe85b05 provide TAGS file for Isabelle sources;
wenzelm
parents: 8810
diff changeset
   191
( cd src; ../Admin/maketags; )
10077
wenzelm
parents: 10068
diff changeset
   192
9052
7db48fe85b05 provide TAGS file for Isabelle sources;
wenzelm
parents: 8810
diff changeset
   193
rm -rf Admin
7db48fe85b05 provide TAGS file for Isabelle sources;
wenzelm
parents: 8810
diff changeset
   194
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   195
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   196
# create archive
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   197
9797
49e55730eb7a provide "--" argument: tentative release;
wenzelm
parents: 9782
diff changeset
   198
echo "###"
49e55730eb7a provide "--" argument: tentative release;
wenzelm
parents: 9782
diff changeset
   199
echo "### Creating archives ..."
49e55730eb7a provide "--" argument: tentative release;
wenzelm
parents: 9782
diff changeset
   200
echo "###"
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   201
9797
49e55730eb7a provide "--" argument: tentative release;
wenzelm
parents: 9782
diff changeset
   202
cd "$DISTBASE"
49e55730eb7a provide "--" argument: tentative release;
wenzelm
parents: 9782
diff changeset
   203
10087
wenzelm
parents: 10077
diff changeset
   204
echo "$DISTBASE/$DISTNAME.tar.gz" > ../ISABELLE_DIST
wenzelm
parents: 10077
diff changeset
   205
10068
46db6fde4ee3 include "Isabelle" link;
wenzelm
parents: 10017
diff changeset
   206
rm -f Isabelle
46db6fde4ee3 include "Isabelle" link;
wenzelm
parents: 10017
diff changeset
   207
ln -s "$DISTNAME" Isabelle
46db6fde4ee3 include "Isabelle" link;
wenzelm
parents: 10017
diff changeset
   208
9797
49e55730eb7a provide "--" argument: tentative release;
wenzelm
parents: 9782
diff changeset
   209
chown -R "$LOGNAME" "$DISTNAME"
49e55730eb7a provide "--" argument: tentative release;
wenzelm
parents: 9782
diff changeset
   210
chmod -R u+w "$DISTNAME"
49e55730eb7a provide "--" argument: tentative release;
wenzelm
parents: 9782
diff changeset
   211
chmod -R g=o "$DISTNAME"
10077
wenzelm
parents: 10068
diff changeset
   212
chgrp -R isabelle "$DISTNAME" Isabelle
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   213
9797
49e55730eb7a provide "--" argument: tentative release;
wenzelm
parents: 9782
diff changeset
   214
mkdir -p "pdf/$DISTNAME/doc"
49e55730eb7a provide "--" argument: tentative release;
wenzelm
parents: 9782
diff changeset
   215
mv "$DISTNAME/doc/"*.pdf "pdf/$DISTNAME/doc"
6748
f1f70344b749 separate archive for pdf docs;
wenzelm
parents: 6630
diff changeset
   216
10928
e040e8627bbb generate index.html for pdf docs;
wenzelm
parents: 10533
diff changeset
   217
page/bin/mkcontents "$DISTNAME/doc/Contents" "pdf/$DISTNAME/doc/index"
e040e8627bbb generate index.html for pdf docs;
wenzelm
parents: 10533
diff changeset
   218
cat > "pdf/$DISTNAME/doc/index.html" <<EOF
e040e8627bbb generate index.html for pdf docs;
wenzelm
parents: 10533
diff changeset
   219
<html>
e040e8627bbb generate index.html for pdf docs;
wenzelm
parents: 10533
diff changeset
   220
<head>
e040e8627bbb generate index.html for pdf docs;
wenzelm
parents: 10533
diff changeset
   221
<title>$DISTNAME Documentation</title>
e040e8627bbb generate index.html for pdf docs;
wenzelm
parents: 10533
diff changeset
   222
</head>
e040e8627bbb generate index.html for pdf docs;
wenzelm
parents: 10533
diff changeset
   223
<body>
e040e8627bbb generate index.html for pdf docs;
wenzelm
parents: 10533
diff changeset
   224
<h1>$DISTNAME Documentation</h1>
e040e8627bbb generate index.html for pdf docs;
wenzelm
parents: 10533
diff changeset
   225
$(cat "pdf/$DISTNAME/doc/index")
e040e8627bbb generate index.html for pdf docs;
wenzelm
parents: 10533
diff changeset
   226
</body>
e040e8627bbb generate index.html for pdf docs;
wenzelm
parents: 10533
diff changeset
   227
</html>
e040e8627bbb generate index.html for pdf docs;
wenzelm
parents: 10533
diff changeset
   228
EOF
e040e8627bbb generate index.html for pdf docs;
wenzelm
parents: 10533
diff changeset
   229
rm "pdf/$DISTNAME/doc/index"
e040e8627bbb generate index.html for pdf docs;
wenzelm
parents: 10533
diff changeset
   230
10096
wenzelm
parents: 10087
diff changeset
   231
echo "$DISTNAME.tar.gz"
10077
wenzelm
parents: 10068
diff changeset
   232
"$TAR" cf "$DISTNAME.tar" Isabelle "$DISTNAME"
10096
wenzelm
parents: 10087
diff changeset
   233
gzip "$DISTNAME.tar"
wenzelm
parents: 10087
diff changeset
   234
wenzelm
parents: 10087
diff changeset
   235
echo "${DISTNAME}_pdf.tar.gz"
10112
wenzelm
parents: 10096
diff changeset
   236
( cd pdf; "$TAR" cf "../${DISTNAME}_pdf.tar" "$DISTNAME"; )
10096
wenzelm
parents: 10087
diff changeset
   237
gzip "${DISTNAME}_pdf.tar"
6748
f1f70344b749 separate archive for pdf docs;
wenzelm
parents: 6630
diff changeset
   238
10928
e040e8627bbb generate index.html for pdf docs;
wenzelm
parents: 10533
diff changeset
   239
mv "pdf/$DISTNAME/doc/"*.pdf "pdf/$DISTNAME/doc/index.html" "$DISTNAME/doc"
9797
49e55730eb7a provide "--" argument: tentative release;
wenzelm
parents: 9782
diff changeset
   240
rmdir "pdf/$DISTNAME/doc" "pdf/$DISTNAME" pdf
6750
0681dd2211b5 move pdfs back into dist;
wenzelm
parents: 6748
diff changeset
   241
6304
9a82e1c3d9da fixed again;
wenzelm
parents: 6296
diff changeset
   242
9782
63b195acdaaa cleanup dist sources afterwards;
wenzelm
parents: 9052
diff changeset
   243
# cleanup dist
63b195acdaaa cleanup dist sources afterwards;
wenzelm
parents: 9052
diff changeset
   244
9797
49e55730eb7a provide "--" argument: tentative release;
wenzelm
parents: 9782
diff changeset
   245
mv "$DISTNAME" "${DISTNAME}-old"
49e55730eb7a provide "--" argument: tentative release;
wenzelm
parents: 9782
diff changeset
   246
mkdir "$DISTNAME"
9782
63b195acdaaa cleanup dist sources afterwards;
wenzelm
parents: 9052
diff changeset
   247
10017
e146bbfc38c1 include ANNOUNCE;
wenzelm
parents: 9959
diff changeset
   248
mv "${DISTNAME}-old/README.html" "${DISTNAME}-old/INSTALL" "${DISTNAME}-old/NEWS" "${DISTNAME}-old/ANNOUNCE" "$DISTNAME"
9797
49e55730eb7a provide "--" argument: tentative release;
wenzelm
parents: 9782
diff changeset
   249
mkdir "$DISTNAME/doc"
10928
e040e8627bbb generate index.html for pdf docs;
wenzelm
parents: 10533
diff changeset
   250
mv "${DISTNAME}-old/doc/"*.pdf "${DISTNAME}-old/doc/index.html" "$DISTNAME/doc"
9782
63b195acdaaa cleanup dist sources afterwards;
wenzelm
parents: 9052
diff changeset
   251
9867
wenzelm
parents: 9797
diff changeset
   252
chgrp -R isabelle "$DISTNAME"
wenzelm
parents: 9797
diff changeset
   253
9797
49e55730eb7a provide "--" argument: tentative release;
wenzelm
parents: 9782
diff changeset
   254
rm -rf "${DISTNAME}-old"
9782
63b195acdaaa cleanup dist sources afterwards;
wenzelm
parents: 9052
diff changeset
   255
63b195acdaaa cleanup dist sources afterwards;
wenzelm
parents: 9052
diff changeset
   256
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   257
# final note
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   258
9797
49e55730eb7a provide "--" argument: tentative release;
wenzelm
parents: 9782
diff changeset
   259
echo "###"
10112
wenzelm
parents: 10096
diff changeset
   260
echo "### Finished makedist."
9797
49e55730eb7a provide "--" argument: tentative release;
wenzelm
parents: 9782
diff changeset
   261
echo "###"