Fix makerelease.sh
This commit is contained in:
parent
b5135efc27
commit
81f2fde1b6
|
@ -23,15 +23,9 @@ if [ "x$1" = "x" ]; then
|
||||||
echo "usage: $0 releasename [--automatic]"
|
echo "usage: $0 releasename [--automatic]"
|
||||||
exit
|
exit
|
||||||
else
|
else
|
||||||
PROGRAM=`pwd | sed "s:/scripts::" | awk -F/ '{print $NF}'`
|
|
||||||
RELEASENAME="$1"
|
RELEASENAME="$1"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $1 != $PROGRAM* ]]; then
|
|
||||||
echo "example: $0 $PROGRAM-1.2.3"
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "x$2" = "x--automatic" ]; then
|
if [ "x$2" = "x--automatic" ]; then
|
||||||
AUTOMATIC="yes"
|
AUTOMATIC="yes"
|
||||||
fi
|
fi
|
||||||
|
@ -49,7 +43,10 @@ echo "Making release named $RELEASENAME (tip $TIP)"
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo "Building root: $RELEASENAME/"
|
echo "Building root: $RELEASENAME/"
|
||||||
git archive $RELEASENAME
|
cd ..
|
||||||
|
git archive --format=tar --prefix=$RELEASENAME/ HEAD | gzip >scripts/$RELEASENAME-working.tar.gz
|
||||||
|
cd $WRKDIR
|
||||||
|
tar -xzvf $RELEASENAME-working.tar.gz
|
||||||
cd $RELEASENAME
|
cd $RELEASENAME
|
||||||
sh autogen.sh
|
sh autogen.sh
|
||||||
rm -rf autogen.sh autom4te.cache
|
rm -rf autogen.sh autom4te.cache
|
||||||
|
@ -68,6 +65,8 @@ tar zcf $RELEASENAME.tar.gz $RELEASENAME/
|
||||||
echo "Building $RELEASENAME.tar.bz2 from $RELEASENAME/"
|
echo "Building $RELEASENAME.tar.bz2 from $RELEASENAME/"
|
||||||
tar jcf $RELEASENAME.tar.bz2 $RELEASENAME/
|
tar jcf $RELEASENAME.tar.bz2 $RELEASENAME/
|
||||||
|
|
||||||
|
rm $RELEASENAME-working.tar.gz
|
||||||
|
|
||||||
PUBLISH="yes"
|
PUBLISH="yes"
|
||||||
|
|
||||||
ok="0"
|
ok="0"
|
||||||
|
|
Loading…
Reference in New Issue