2 # perform sanity checks, make packages
3 VER
=`grep AC_INIT configure.ac | sed 's/.*\[\([0-9]*\.[0-9]*\.[0-9]*\)\].*/\1/'`
4 echo Preparing new release
: pbc-
$VER
6 if [[ $1 == "test" ]]; then
10 if [[ ! -z $
(git
diff) ]]; then
11 echo Uncommitted changes detected. Commit them first.
15 cat ChangeLog |
head -20 |
grep pbc-
$GREPVER > /dev
/null ||
{
16 echo git log does not mention release
17 if [[ $TESTRUN ]]; then
18 echo test run
: continuing anyway...
23 TMPDIR
=`mktemp -d` ||
{
24 echo Error creating temp directory
27 PBCDIR
=$TMPDIR/pbc-
$VER
29 git archive
--format=tar --prefix=pbc-
$VER/ HEAD |
tar xvC
$TMPDIR
31 make -f simple.
make pbc
/parser.tab.c pbc
/lex.yy.c
32 cp pbc
/parser.tab.
[ch
] pbc
/lex.yy.
[ch
] $PBCDIR/pbc
35 grep $GREPVER NEWS
> /dev
/null ||
{
36 echo NEWS does not mention release
37 if [[ $TESTRUN ]]; then
38 echo test run
: continuing anyway...
45 grep $GREPVER doc
/preface.txt
> /dev
/null ||
{
46 echo Error
: cannot
find $GREPVER in doc
/preface.txt.
47 if [[ $TESTRUN ]]; then
48 echo test run
: continuing anyway...
61 echo Creating tarball...
62 rm -rf $PBCDIR/autom4te.cache
63 if [[ $TESTRUN ]]; then
64 echo test run
: not building tarball...
66 tar cvfz
$HERE/pbc-
$VER.
tar.gz pbc-
$VER
70 echo .
/configure error
81 echo Cross compiling with simple.
make...
82 PLATFORM
=win32 colormake
-f simple.
make ||
{
83 echo mingw cross compile error
87 if [[ $TESTRUN ]]; then
88 echo test run
: not building
zip...
91 mv out
/* param
/* pbc-
$VER
92 cp benchmark
/REPORT.BAT pbc-
$VER
93 zip -r $HERE/pbc-
$VER-win32-bin.
zip pbc-
$VER
96 echo 'Now run ./publish!'