-
Notifications
You must be signed in to change notification settings - Fork 2
/
mkdistrib
35 lines (35 loc) · 1.15 KB
/
mkdistrib
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# (renommer release en release-#version)
# RELNUM=0.XY time ./mkdistrib
set -ex
[ "$RELNUM" = `cashr -c 'print_string Cash.version;'` ]
make ps html
rm -rf release
mkdir release
make release/INDEX REL=${RELNUM?manque le n° de version}
# \ are in case of inclusion in a Makefile
(set -e; \
cd release; \
NEWCASH=cash-${RELNUM}; \
cvs -d ":pserver:[email protected]:/net/pauillac/caml/repository" co cash; \
cp -p ../doc/*.html ../doc/doc* ../doc/style.css cash/doc; mv cash/doc/dist-index.html .; \
mv cash $NEWCASH; \
rm -f `find . -name '.cvsignore' -print`; \
rm -rf `find . -name 'CVS' -print`; \
chmod -R go=u-w .; \
tar zcf $NEWCASH.tar.gz $NEWCASH; \
chmod go=u-w $NEWCASH.tar.gz; \
grep "Cash (${RELNUM})" INDEX; \
cp -p ../COPYING ../LGPL .; \
cp -p ../INSTALL.txt INSTALL; \
chmod go=u-w *; \
mkdir www; \
mkdir www/$NEWCASH; \
mv $NEWCASH/doc www/$NEWCASH; \
rm -fr $NEWCASH; \
mv dist-index.html www/index.html; \
ln -s $NEWCASH www/latest; \
(set -e; cd www; chmod go=u-w . $NEWCASH; tar zcf /tmp/www-cash.tgz .); \
rm -fr www; \
ln -s $NEWCASH.tar.gz cash.tar.gz; \
tar cf /tmp/cash-dist.tar .; \
)