Mercurial > noffle
comparison make-distribution @ 0:04124a4423d4 noffle
[svn] Initial revision
author | enz |
---|---|
date | Tue, 04 Jan 2000 11:35:42 +0000 |
parents | |
children | 6121f8feb3e5 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:04124a4423d4 |
---|---|
1 #!/usr/bin/bash | |
2 | |
3 if ! make-check ; then | |
4 echo "make-check failed" | |
5 exit -1 | |
6 fi | |
7 | |
8 FILESH="client.h common.h config.h content.h database.h dynamicstring.h \ | |
9 fetch.h fetchlist.h group.h lock.h \ | |
10 log.h online.h outgoing.h over.h protocol.h pseudo.h \ | |
11 request.h server.h util.h" | |
12 | |
13 FILESC="fetch.c client.c config.c content.c database.c \ | |
14 dynamicstring.c fetchlist.c \ | |
15 group.c lock.c log.c noffle.c online.c outgoing.c over.c \ | |
16 protocol.c pseudo.c request.c server.c util.c" | |
17 | |
18 FILESDOC="README NOTES CHANGELOG COPYING INSTALL FAQ" | |
19 | |
20 FILES="$FILESH $FILESC noffle.conf.example Makefile noffle.1 noffle.conf.5" | |
21 | |
22 echo | |
23 echo !!! WARNING !!! | |
24 echo | |
25 echo "You are creating a distribution now." | |
26 echo "Are the compiler settings in the Makefile for distribution?" | |
27 echo "Files will be tagged in CVS (with version, but '.' replaced by '_')" | |
28 echo "Input the version (CTRL-C to abort):" | |
29 read VERSION | |
30 TAG=`echo "dist_$VERSION" | tr "." "_"` | |
31 rm -rf noffle-$VERSION | |
32 DIR=noffle-$VERSION | |
33 mkdir $DIR \ | |
34 && cp $FILES $DIR \ | |
35 && ( for a in $FILESDOC; do echo Creating $a.txt; lynx -dump -nolist \ | |
36 $a.html >$DIR/$a.txt || exit -1; done ) \ | |
37 && sed 's/^VERSION *= *[^ ]*/VERSION = '$VERSION'/' <Makefile >$DIR/Makefile \ | |
38 && cp $DIR/Makefile Makefile \ | |
39 && tar cf noffle-$VERSION.tar $DIR \ | |
40 && gzip -9 noffle-$VERSION.tar \ | |
41 && cvs tag -d dist_test \ | |
42 && cvs ci -m "Makefile for version $VERSION" Makefile \ | |
43 && cvs tag $TAG | |
44 echo Do not forget to change VERSION in Makefile to experimental if | |
45 echo you plan to modify the sources from now on. | |
46 echo | |
47 echo Please try to compile this version to ensure that no file is missing. |