summaryrefslogtreecommitdiffstats
path: root/moon-abe/pbc-0.5.14/release
diff options
context:
space:
mode:
authorwukong <rebirthmonkey@gmail.com>2015-11-23 17:48:48 +0100
committerwukong <rebirthmonkey@gmail.com>2015-11-23 17:48:48 +0100
commitfca74d4bc3569506a6659880a89aa009dc11f552 (patch)
tree4cefd06af989608ea8ebd3bc6306889e2a1ad175 /moon-abe/pbc-0.5.14/release
parent840ac3ebca7af381132bf7e93c1e4c0430d6b16a (diff)
moon-abe cleanup
Change-Id: Ie1259856db03f0b9e80de3e967ec6bd1f03191b3
Diffstat (limited to 'moon-abe/pbc-0.5.14/release')
-rw-r--r--moon-abe/pbc-0.5.14/release96
1 files changed, 0 insertions, 96 deletions
diff --git a/moon-abe/pbc-0.5.14/release b/moon-abe/pbc-0.5.14/release
deleted file mode 100644
index 3c56f6b7..00000000
--- a/moon-abe/pbc-0.5.14/release
+++ /dev/null
@@ -1,96 +0,0 @@
-#!/bin/bash
-# perform sanity checks, make packages
-VER=`grep AC_INIT configure.ac | sed 's/.*\[\([0-9]*\.[0-9]*\.[0-9]*\)\].*/\1/'`
-echo Preparing new release: pbc-$VER
-GREPVER=${VER//\./\\.}
-if [[ $1 == "test" ]]; then
- echo test run
- TESTRUN=1
-fi
-if [[ ! -z $(git diff) ]]; then
- echo Uncommitted changes detected. Commit them first.
- exit 1
-fi
-git log > ChangeLog
-cat ChangeLog | head -20 | grep pbc-$GREPVER > /dev/null || {
- echo git log does not mention release
- if [[ $TESTRUN ]]; then
- echo test run: continuing anyway...
- else
- exit 1
- fi
-}
-TMPDIR=`mktemp -d` || {
- echo Error creating temp directory
- exit 1
-}
-PBCDIR=$TMPDIR/pbc-$VER
-echo Running setup...
-git archive --format=tar --prefix=pbc-$VER/ HEAD | tar xvC $TMPDIR
-HERE=`pwd`
-make -f simple.make pbc/parser.tab.c pbc/lex.yy.c
-cp pbc/parser.tab.[ch] pbc/lex.yy.[ch] $PBCDIR/pbc
-cp ChangeLog $PBCDIR
-cd $PBCDIR
-grep $GREPVER NEWS > /dev/null || {
- echo NEWS does not mention release
- if [[ $TESTRUN ]]; then
- echo test run: continuing anyway...
- else
- cd $HERE
- rm -rf $TMPDIR
- exit 1
- fi
-}
-grep $GREPVER doc/preface.txt > /dev/null || {
- echo Error: cannot find $GREPVER in doc/preface.txt.
- if [[ $TESTRUN ]]; then
- echo test run: continuing anyway...
- else
- cd $HERE
- rm -rf $TMPDIR
- exit 1
- fi
-}
-./setup || {
- echo ./setup error
- rm -rf $TMPDIR
- exit 1
-}
-cd $TMPDIR
-echo Creating tarball...
-rm -rf $PBCDIR/autom4te.cache
-if [[ $TESTRUN ]]; then
- echo test run: not building tarball...
-else
- tar cvfz $HERE/pbc-$VER.tar.gz pbc-$VER
-fi
-cd $PBCDIR
-./configure || {
- echo ./configure error
- rm -rf $TMPDIR
- exit 1
-}
-echo Testing make...
-make || {
- echo make error
- rm -rf $TMPDIR
- exit 1
-}
-make clean
-echo Cross compiling with simple.make...
-PLATFORM=win32 colormake -f simple.make || {
- echo mingw cross compile error
- rm -rf $TMPDIR
- exit 1
-}
-if [[ $TESTRUN ]]; then
- echo test run: not building zip...
-else
- mkdir pbc-$VER
- mv out/* param/* pbc-$VER
- cp benchmark/REPORT.BAT pbc-$VER
- zip -r $HERE/pbc-$VER-win32-bin.zip pbc-$VER
-fi
-rm -rf $TMPDIR
-echo 'Now run ./publish!'