Admin/makedist
author wenzelm
Thu, 17 Jul 2008 16:56:48 +0200
changeset 27633 c2984f0684ee
parent 27446 bac210482607
child 27637 47ceef8aa1e4
permissions -rwxr-xr-x
assume GNU tar and find; Admin/build all; discontinued maketags;
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
17554
d16abc8f4fb0 removed "--" argument;
wenzelm
parents: 16508
diff changeset
    10
DISTPREFIX=${DISTPREFIX:-~/tmp/isadist}
23149
ddc5800b699f added src/Tools;
wenzelm
parents: 21712
diff changeset
    11
SRCS="CCL CTT Cube FOL FOLP HOL HOLCF LCF Provers Pure Sequents Tools ZF"
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    12
26372
f882403f0d56 replaced obsolete /usr/proj by /home;
wenzelm
parents: 26370
diff changeset
    13
export CVSROOT=/home/isabelle-repository/archive
26370
2a4f0d0621f1 remote CVSROOT: default to atbroy100 instead of sunbroy2;
wenzelm
parents: 26133
diff changeset
    14
[ ! -d "$CVSROOT" ] && CVSROOT="${ISABELLE_USER:-$USER}@atbroy100.informatik.tu-muenchen.de:$CVSROOT"
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    15
27633
c2984f0684ee assume GNU tar and find;
wenzelm
parents: 27446
diff changeset
    16
[ -z "$CVS2CL" ] && type -path cvs2cl >/dev/null && CVS2CL=cvs2cl
9920
9734f2717203 improved WWW page generation (still somewhat experimental);
wenzelm
parents: 9880
diff changeset
    17
27633
c2984f0684ee assume GNU tar and find;
wenzelm
parents: 27446
diff changeset
    18
umask 022
26370
2a4f0d0621f1 remote CVSROOT: default to atbroy100 instead of sunbroy2;
wenzelm
parents: 26133
diff changeset
    19
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    20
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    21
## diagnostics
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    22
9797
49e55730eb7a provide "--" argument: tentative release;
wenzelm
parents: 9782
diff changeset
    23
PRG=$(basename "$0")
49e55730eb7a provide "--" argument: tentative release;
wenzelm
parents: 9782
diff changeset
    24
THIS=$(cd $(dirname "$0"); echo "$PWD")
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    25
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    26
function usage()
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    27
{
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    28
  cat <<EOF
11062
wenzelm
parents: 10928
diff changeset
    29
17554
d16abc8f4fb0 removed "--" argument;
wenzelm
parents: 16508
diff changeset
    30
Usage: $PRG VERSION [NAME]
11062
wenzelm
parents: 10928
diff changeset
    31
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    32
  Make Isabelle distribution from the master sources at TUM.
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    33
17693
541f6367a431 avoid naming existing tags in explanations;
wenzelm
parents: 17655
diff changeset
    34
  VERSION may be either a tag like "IsabelleXXXX" that specifies the
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    35
  release to be exported from the repository, or "-" to checkout the
17554
d16abc8f4fb0 removed "--" argument;
wenzelm
parents: 16508
diff changeset
    36
  current sources as an unofficial release.
d16abc8f4fb0 removed "--" argument;
wenzelm
parents: 16508
diff changeset
    37
d16abc8f4fb0 removed "--" argument;
wenzelm
parents: 16508
diff changeset
    38
  NAME specifies an explicit distribution name, by default it is
d16abc8f4fb0 removed "--" argument;
wenzelm
parents: 16508
diff changeset
    39
  derived from VERSION.
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    40
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    41
  Checklist for official releases (before running this script):
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    42
25214
91730b492a45 ASCIIfied README
haftmann
parents: 23895
diff changeset
    43
    * Check ANNOUNCE, README, INSTALL, NEWS, COPYRIGHT, CONTRIBUTORS.
11062
wenzelm
parents: 10928
diff changeset
    44
    * Try "isatool makeall all" with Poly/ML, SML/NJ, etc.
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    45
    * Tag the current repository version, e.g.:
26370
2a4f0d0621f1 remote CVSROOT: default to atbroy100 instead of sunbroy2;
wenzelm
parents: 26133
diff changeset
    46
        cvs -d /home/isabelle-repository/archive rtag IsabelleXXXX isabelle
11062
wenzelm
parents: 10928
diff changeset
    47
      PLEASE DO NOT DO THIS UNLESS YOU KNOW WHAT YOU ARE DOING!
5727
1b708bfb0c1e fixed index.html;
wenzelm
parents: 5725
diff changeset
    48
25237
5dbb6d583adc improved website integration
haftmann
parents: 25235
diff changeset
    49
   After running this script:
5dbb6d583adc improved website integration
haftmann
parents: 25235
diff changeset
    50
5dbb6d583adc improved website integration
haftmann
parents: 25235
diff changeset
    51
    * Symlink generated files in website/ directory to their appropriate
5dbb6d583adc improved website integration
haftmann
parents: 25235
diff changeset
    52
      places in the isabelle website sources.
5dbb6d583adc improved website integration
haftmann
parents: 25235
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
17554
d16abc8f4fb0 removed "--" argument;
wenzelm
parents: 16508
diff changeset
    67
[ "$#" -ne 1 -a "$#" -ne 2 ] && usage
d16abc8f4fb0 removed "--" argument;
wenzelm
parents: 16508
diff changeset
    68
d16abc8f4fb0 removed "--" argument;
wenzelm
parents: 16508
diff changeset
    69
VERSION="$1"; shift
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    70
17554
d16abc8f4fb0 removed "--" argument;
wenzelm
parents: 16508
diff changeset
    71
if [ "$#" -eq 0 ]; then
d16abc8f4fb0 removed "--" argument;
wenzelm
parents: 16508
diff changeset
    72
  DISTNAME=""
d16abc8f4fb0 removed "--" argument;
wenzelm
parents: 16508
diff changeset
    73
else
d16abc8f4fb0 removed "--" argument;
wenzelm
parents: 16508
diff changeset
    74
  DISTNAME="$1"; shift
d16abc8f4fb0 removed "--" argument;
wenzelm
parents: 16508
diff changeset
    75
fi
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    76
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    77
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    78
## main
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    79
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    80
# dist version
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    81
21712
8b2fd895a7fc date: forcing LC_ALL=C prevents funny file names;
wenzelm
parents: 20990
diff changeset
    82
DATE=$(env LC_ALL=C date "+%d-%b-%Y")
8b2fd895a7fc date: forcing LC_ALL=C prevents funny file names;
wenzelm
parents: 20990
diff changeset
    83
DISTDATE=$(env LC_ALL=C date "+%B %Y")
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    84
17554
d16abc8f4fb0 removed "--" argument;
wenzelm
parents: 16508
diff changeset
    85
if [ "$VERSION" = "-" ]; then
d16abc8f4fb0 removed "--" argument;
wenzelm
parents: 16508
diff changeset
    86
  DISTIDENT="Isabelle_$DATE"
d16abc8f4fb0 removed "--" argument;
wenzelm
parents: 16508
diff changeset
    87
  [ -z "$DISTNAME" ] && DISTNAME="$DISTIDENT"
9797
49e55730eb7a provide "--" argument: tentative release;
wenzelm
parents: 9782
diff changeset
    88
  DISTVERSION="$DISTNAME"
49e55730eb7a provide "--" argument: tentative release;
wenzelm
parents: 9782
diff changeset
    89
  EXPORT="cvs -f -q checkout -P -d $DISTNAME isabelle"
17558
wenzelm
parents: 17554
diff changeset
    90
  UNOFFICIAL=true
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    91
else
17554
d16abc8f4fb0 removed "--" argument;
wenzelm
parents: 16508
diff changeset
    92
  DISTIDENT="$VERSION"
d16abc8f4fb0 removed "--" argument;
wenzelm
parents: 16508
diff changeset
    93
  [ -z "$DISTNAME" ] && DISTNAME="$DISTIDENT"
4982
6f96354267e0 tuned dist version;
wenzelm
parents: 4979
diff changeset
    94
  DISTVERSION="$DISTNAME: $DISTDATE"
17561
bde06ed41123 fixed cvs export;
wenzelm
parents: 17560
diff changeset
    95
  EXPORT="cvs -f -q export -r $VERSION -d $DISTNAME isabelle"
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    96
  UNOFFICIAL=""
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    97
fi
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
    98
9797
49e55730eb7a provide "--" argument: tentative release;
wenzelm
parents: 9782
diff changeset
    99
DISTBASE="$DISTPREFIX/dist-$DISTNAME"
49e55730eb7a provide "--" argument: tentative release;
wenzelm
parents: 9782
diff changeset
   100
mkdir -p "$DISTBASE" || fail "Unable to create distribution base dir $DISTBASE!"
49e55730eb7a provide "--" argument: tentative release;
wenzelm
parents: 9782
diff changeset
   101
[ -e "$DISTBASE/$DISTNAME" ] && fail "$DISTBASE/$DISTNAME already exists!"
49e55730eb7a provide "--" argument: tentative release;
wenzelm
parents: 9782
diff changeset
   102
[ -e "$DISTBASE/pdf/$DISTNAME" ] && fail "$DISTBASE/pdf/$DISTNAME already exists!"
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   103
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   104
9797
49e55730eb7a provide "--" argument: tentative release;
wenzelm
parents: 9782
diff changeset
   105
# export repository
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   106
9797
49e55730eb7a provide "--" argument: tentative release;
wenzelm
parents: 9782
diff changeset
   107
echo "###"
17554
d16abc8f4fb0 removed "--" argument;
wenzelm
parents: 16508
diff changeset
   108
echo "### Exporting $DISTIDENT ..."
9797
49e55730eb7a provide "--" argument: tentative release;
wenzelm
parents: 9782
diff changeset
   109
echo "###"
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   110
9797
49e55730eb7a provide "--" argument: tentative release;
wenzelm
parents: 9782
diff changeset
   111
cd "$DISTBASE"
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   112
13230
c5fad3c40d45 fail more gracefully, return proper exit codes, allow preset DISTPREFIX
kleing
parents: 13100
diff changeset
   113
$EXPORT || fail "Export failed!"
15438
dfc7d2a824d6 Added ChangeLog
berghofe
parents: 13803
diff changeset
   114
27029
0006d6a6d21d cvs2cl only for unofficial releases;
wenzelm
parents: 26372
diff changeset
   115
if [ -n "$CVS2CL" -a -n "$UNOFFICIAL" ]; then
15438
dfc7d2a824d6 Added ChangeLog
berghofe
parents: 13803
diff changeset
   116
  cd $DISTNAME
dfc7d2a824d6 Added ChangeLog
berghofe
parents: 13803
diff changeset
   117
  $CVS2CL
dfc7d2a824d6 Added ChangeLog
berghofe
parents: 13803
diff changeset
   118
  gzip ChangeLog
26108
46f4e4cd3b69 keep ChangeLog.gz within distribution;
wenzelm
parents: 25949
diff changeset
   119
  cp ChangeLog.gz ..
15438
dfc7d2a824d6 Added ChangeLog
berghofe
parents: 13803
diff changeset
   120
  cd ..
dfc7d2a824d6 Added ChangeLog
berghofe
parents: 13803
diff changeset
   121
fi
dfc7d2a824d6 Added ChangeLog
berghofe
parents: 13803
diff changeset
   122
27633
c2984f0684ee assume GNU tar and find;
wenzelm
parents: 27446
diff changeset
   123
find . -name CVS -print | xargs rm -rf
c2984f0684ee assume GNU tar and find;
wenzelm
parents: 27446
diff changeset
   124
find . -name .cvsignore -print | xargs rm -rf
c2984f0684ee assume GNU tar and find;
wenzelm
parents: 27446
diff changeset
   125
find . "(" -name \*.thy -o -name \*.ML ")" -perm +111 -print | xargs chmod -x
c2984f0684ee assume GNU tar and find;
wenzelm
parents: 27446
diff changeset
   126
find . -print | xargs chmod u+rw
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   127
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   128
27633
c2984f0684ee assume GNU tar and find;
wenzelm
parents: 27446
diff changeset
   129
# build components
9797
49e55730eb7a provide "--" argument: tentative release;
wenzelm
parents: 9782
diff changeset
   130
27633
c2984f0684ee assume GNU tar and find;
wenzelm
parents: 27446
diff changeset
   131
"$DISTBASE/$DISTNAME/Admin/build" all || fail "Failed to build distribution"
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   132
9052
7db48fe85b05 provide TAGS file for Isabelle sources;
wenzelm
parents: 8810
diff changeset
   133
9920
9734f2717203 improved WWW page generation (still somewhat experimental);
wenzelm
parents: 9880
diff changeset
   134
# prepare dist dir for release
8059
9128e934bf51 new web pages integrated
kleing
parents: 7993
diff changeset
   135
9920
9734f2717203 improved WWW page generation (still somewhat experimental);
wenzelm
parents: 9880
diff changeset
   136
echo "###"
9734f2717203 improved WWW page generation (still somewhat experimental);
wenzelm
parents: 9880
diff changeset
   137
echo "### Preparing distribution ..."
9734f2717203 improved WWW page generation (still somewhat experimental);
wenzelm
parents: 9880
diff changeset
   138
echo "###"
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   139
17554
d16abc8f4fb0 removed "--" argument;
wenzelm
parents: 16508
diff changeset
   140
cd "$DISTBASE/$DISTNAME" || fail "No dist directory: $DISTBASE/$DISTNAME"
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   141
25237
5dbb6d583adc improved website integration
haftmann
parents: 25235
diff changeset
   142
mkdir -p ../website
5dbb6d583adc improved website integration
haftmann
parents: 25235
diff changeset
   143
cat > ../website/distinfo.mak <<EOF
17942
68988fd2fd27 towards an improved website/makedist integration
haftmann
parents: 17910
diff changeset
   144
# this is a generated file - do not edit unless you know what you are doing!
16301
f9f2e1643593 migrated scripts to new webiste
haftmann
parents: 16286
diff changeset
   145
f9f2e1643593 migrated scripts to new webiste
haftmann
parents: 16286
diff changeset
   146
DISTNAME=$DISTNAME
17554
d16abc8f4fb0 removed "--" argument;
wenzelm
parents: 16508
diff changeset
   147
DISTIDENT=$DISTIDENT
17910
2b435795c9e9 slight improvements for website
haftmann
parents: 17693
diff changeset
   148
DISTBASE=$DISTBASE
16301
f9f2e1643593 migrated scripts to new webiste
haftmann
parents: 16286
diff changeset
   149
EOF
9920
9734f2717203 improved WWW page generation (still somewhat experimental);
wenzelm
parents: 9880
diff changeset
   150
25237
5dbb6d583adc improved website integration
haftmann
parents: 25235
diff changeset
   151
cp Distribution/lib/html/library_index_content.template ../website/
5dbb6d583adc improved website integration
haftmann
parents: 25235
diff changeset
   152
27633
c2984f0684ee assume GNU tar and find;
wenzelm
parents: 27446
diff changeset
   153
MOVE=$(find Doc \( -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')
6630
5f810292c030 make pdf;
wenzelm
parents: 6304
diff changeset
   154
mv -f $MOVE Distribution/doc
3305
d8114e93ef66 fixed doc;
wenzelm
parents: 3281
diff changeset
   155
rm Distribution/doc/Isa-logics.eps
27090
2f45c1b1b05d remove codegen_process.pdf from distribution;
wenzelm
parents: 27029
diff changeset
   156
rm Distribution/doc/codegen_process.pdf
23201
85612df29daa proper handling of Tools;
wenzelm
parents: 23160
diff changeset
   157
rm -rf Doc
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   158
7115
37178f53ed4d mkdir contrib;
wenzelm
parents: 6958
diff changeset
   159
mkdir src contrib
23149
ddc5800b699f added src/Tools;
wenzelm
parents: 21712
diff changeset
   160
mv $SRCS src
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   161
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   162
mv Distribution/* .
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   163
rmdir Distribution
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   164
25949
850b4c2d0f17 reactivated mk of java/scala sources, with paranoia PATH setting for sunbroy;
wenzelm
parents: 25859
diff changeset
   165
5385
8fc3828fdc8a eps logis;
wenzelm
parents: 5172
diff changeset
   166
cp doc/isabelle*.eps lib/logo
8fc3828fdc8a eps logis;
wenzelm
parents: 5172
diff changeset
   167
3638
2b67561c6488 Added some commands for building theory browser.
berghofe
parents: 3363
diff changeset
   168
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   169
if [ -n "$UNOFFICIAL" ]; then
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   170
  {
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   171
    echo
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   172
    echo "IMPORTANT NOTE"
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   173
    echo "=============="
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   174
    echo
17554
d16abc8f4fb0 removed "--" argument;
wenzelm
parents: 16508
diff changeset
   175
    echo "This is an unofficial release of Isabelle, created by $LOGNAME $DATE."
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   176
    echo
9925
wenzelm
parents: 9920
diff changeset
   177
  } >ANNOUNCE
26133
8ea867ad9a48 tuned structure Distribution;
wenzelm
parents: 26108
diff changeset
   178
  perl -pi -e "s/val is_official = true/val is_official = false/" src/Pure/ROOT.ML
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   179
fi
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   180
25433
d138fd74a1a1 cover ISABELLE_IDENTIFIER;
wenzelm
parents: 25237
diff changeset
   181
perl -pi -e "s/ISABELLE_IDENTIFIER=\"\"/ISABELLE_IDENTIFIER=\"$DISTNAME\"/g;" lib/scripts/getsettings
25237
5dbb6d583adc improved website integration
haftmann
parents: 25235
diff changeset
   182
perl -pi -e "s/{ISABELLE}/$DISTNAME/g;" lib/html/library_index_header.template
17554
d16abc8f4fb0 removed "--" argument;
wenzelm
parents: 16508
diff changeset
   183
perl -pi -e "s/Isabelle repository version/$DISTVERSION/" src/Pure/ROOT.ML lib/Tools/version
25214
91730b492a45 ASCIIfied README
haftmann
parents: 23895
diff changeset
   184
perl -pi -e "s/the internal repository version of Isabelle/$DISTVERSION/" README
3257
4e3724e0659f README generation;
wenzelm
parents: 3186
diff changeset
   185
10077
wenzelm
parents: 10068
diff changeset
   186
9052
7db48fe85b05 provide TAGS file for Isabelle sources;
wenzelm
parents: 8810
diff changeset
   187
rm -rf Admin
7db48fe85b05 provide TAGS file for Isabelle sources;
wenzelm
parents: 8810
diff changeset
   188
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   189
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   190
# create archive
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   191
9797
49e55730eb7a provide "--" argument: tentative release;
wenzelm
parents: 9782
diff changeset
   192
echo "###"
49e55730eb7a provide "--" argument: tentative release;
wenzelm
parents: 9782
diff changeset
   193
echo "### Creating archives ..."
49e55730eb7a provide "--" argument: tentative release;
wenzelm
parents: 9782
diff changeset
   194
echo "###"
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   195
9797
49e55730eb7a provide "--" argument: tentative release;
wenzelm
parents: 9782
diff changeset
   196
cd "$DISTBASE"
49e55730eb7a provide "--" argument: tentative release;
wenzelm
parents: 9782
diff changeset
   197
10087
wenzelm
parents: 10077
diff changeset
   198
echo "$DISTBASE/$DISTNAME.tar.gz" > ../ISABELLE_DIST
wenzelm
parents: 10077
diff changeset
   199
10068
46db6fde4ee3 include "Isabelle" link;
wenzelm
parents: 10017
diff changeset
   200
rm -f Isabelle
46db6fde4ee3 include "Isabelle" link;
wenzelm
parents: 10017
diff changeset
   201
ln -s "$DISTNAME" Isabelle
46db6fde4ee3 include "Isabelle" link;
wenzelm
parents: 10017
diff changeset
   202
9797
49e55730eb7a provide "--" argument: tentative release;
wenzelm
parents: 9782
diff changeset
   203
chown -R "$LOGNAME" "$DISTNAME"
49e55730eb7a provide "--" argument: tentative release;
wenzelm
parents: 9782
diff changeset
   204
chmod -R u+w "$DISTNAME"
49e55730eb7a provide "--" argument: tentative release;
wenzelm
parents: 9782
diff changeset
   205
chmod -R g=o "$DISTNAME"
10077
wenzelm
parents: 10068
diff changeset
   206
chgrp -R isabelle "$DISTNAME" Isabelle
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   207
9797
49e55730eb7a provide "--" argument: tentative release;
wenzelm
parents: 9782
diff changeset
   208
mkdir -p "pdf/$DISTNAME/doc"
17655
0039abe88816 yet another atempt to get doc/Contents right;
wenzelm
parents: 17653
diff changeset
   209
mv "$DISTNAME/doc/"*.pdf "pdf/$DISTNAME/doc"
0039abe88816 yet another atempt to get doc/Contents right;
wenzelm
parents: 17653
diff changeset
   210
0039abe88816 yet another atempt to get doc/Contents right;
wenzelm
parents: 17653
diff changeset
   211
sync; sleep 3
6748
f1f70344b749 separate archive for pdf docs;
wenzelm
parents: 6630
diff changeset
   212
10096
wenzelm
parents: 10087
diff changeset
   213
echo "$DISTNAME.tar.gz"
27633
c2984f0684ee assume GNU tar and find;
wenzelm
parents: 27446
diff changeset
   214
tar cf "$DISTNAME.tar" Isabelle "$DISTNAME"
10096
wenzelm
parents: 10087
diff changeset
   215
gzip "$DISTNAME.tar"
wenzelm
parents: 10087
diff changeset
   216
wenzelm
parents: 10087
diff changeset
   217
echo "${DISTNAME}_pdf.tar.gz"
27633
c2984f0684ee assume GNU tar and find;
wenzelm
parents: 27446
diff changeset
   218
( cd pdf; tar cf "../${DISTNAME}_pdf.tar" "$DISTNAME"; )
10096
wenzelm
parents: 10087
diff changeset
   219
gzip "${DISTNAME}_pdf.tar"
6748
f1f70344b749 separate archive for pdf docs;
wenzelm
parents: 6630
diff changeset
   220
17655
0039abe88816 yet another atempt to get doc/Contents right;
wenzelm
parents: 17653
diff changeset
   221
mv "pdf/$DISTNAME/doc/"*.pdf "$DISTNAME/doc"
9797
49e55730eb7a provide "--" argument: tentative release;
wenzelm
parents: 9782
diff changeset
   222
rmdir "pdf/$DISTNAME/doc" "pdf/$DISTNAME" pdf
6750
0681dd2211b5 move pdfs back into dist;
wenzelm
parents: 6748
diff changeset
   223
6304
9a82e1c3d9da fixed again;
wenzelm
parents: 6296
diff changeset
   224
9782
63b195acdaaa cleanup dist sources afterwards;
wenzelm
parents: 9052
diff changeset
   225
# cleanup dist
63b195acdaaa cleanup dist sources afterwards;
wenzelm
parents: 9052
diff changeset
   226
9797
49e55730eb7a provide "--" argument: tentative release;
wenzelm
parents: 9782
diff changeset
   227
mv "$DISTNAME" "${DISTNAME}-old"
49e55730eb7a provide "--" argument: tentative release;
wenzelm
parents: 9782
diff changeset
   228
mkdir "$DISTNAME"
9782
63b195acdaaa cleanup dist sources afterwards;
wenzelm
parents: 9052
diff changeset
   229
25214
91730b492a45 ASCIIfied README
haftmann
parents: 23895
diff changeset
   230
mv "${DISTNAME}-old/README" "${DISTNAME}-old/INSTALL" "${DISTNAME}-old/NEWS" \
17554
d16abc8f4fb0 removed "--" argument;
wenzelm
parents: 16508
diff changeset
   231
  "${DISTNAME}-old/ANNOUNCE" "${DISTNAME}-old/COPYRIGHT" "${DISTNAME}-old/CONTRIBUTORS" \
d16abc8f4fb0 removed "--" argument;
wenzelm
parents: 16508
diff changeset
   232
  "$DISTNAME"
9797
49e55730eb7a provide "--" argument: tentative release;
wenzelm
parents: 9782
diff changeset
   233
mkdir "$DISTNAME/doc"
17655
0039abe88816 yet another atempt to get doc/Contents right;
wenzelm
parents: 17653
diff changeset
   234
mv "${DISTNAME}-old/doc/"*.pdf "${DISTNAME}-old/doc/Contents" "$DISTNAME/doc"
9782
63b195acdaaa cleanup dist sources afterwards;
wenzelm
parents: 9052
diff changeset
   235
9867
wenzelm
parents: 9797
diff changeset
   236
chgrp -R isabelle "$DISTNAME"
wenzelm
parents: 9797
diff changeset
   237
9797
49e55730eb7a provide "--" argument: tentative release;
wenzelm
parents: 9782
diff changeset
   238
rm -rf "${DISTNAME}-old"
9782
63b195acdaaa cleanup dist sources afterwards;
wenzelm
parents: 9052
diff changeset
   239
63b195acdaaa cleanup dist sources afterwards;
wenzelm
parents: 9052
diff changeset
   240
2667
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   241
# final note
b2172eab9ba6 makedist -- make Isabelle distribution.
wenzelm
parents:
diff changeset
   242
9797
49e55730eb7a provide "--" argument: tentative release;
wenzelm
parents: 9782
diff changeset
   243
echo "###"
10112
wenzelm
parents: 10096
diff changeset
   244
echo "### Finished makedist."
9797
49e55730eb7a provide "--" argument: tentative release;
wenzelm
parents: 9782
diff changeset
   245
echo "###"