mirror of
https://github.com/bstansell/conserver.git
synced 2025-04-13 22:03:06 +00:00
adding a "local" flag so only the build directory gets created for immediate testing
This commit is contained in:
parent
8060b14efe
commit
c3db82a572
@ -2,13 +2,14 @@
|
||||
|
||||
set -e
|
||||
|
||||
local=false && [ "$1" = "local" ] && local=true
|
||||
|
||||
[ -f conserver/version.h ] || { echo "you are in the wrong place" ; exit 1; }
|
||||
maj=`grep MAJOR conserver/version.h | awk '{print $NF; exit}'`
|
||||
min=`grep MINOR conserver/version.h | awk '{print $NF; exit}'`
|
||||
rev=`grep REV conserver/version.h | awk '{print $NF; exit}'`
|
||||
ver="$maj.$min.$rev"
|
||||
if [ ! -f ../conserver-$ver.tar.gz ]; then
|
||||
echo "Creating ../conserver-$ver.tar.gz"
|
||||
if [ ! -f ../conserver-$ver.tar.gz ] || $local; then
|
||||
(
|
||||
[ -d build ] && rm -rf build
|
||||
mkdir build
|
||||
@ -17,6 +18,8 @@ if [ ! -f ../conserver-$ver.tar.gz ]; then
|
||||
../../package/setup-configure
|
||||
rm -rf package
|
||||
)
|
||||
$local && exit
|
||||
echo "Creating ../conserver-$ver.tar.gz"
|
||||
tar zcf ../conserver-$ver.tar.gz -C build conserver-$ver
|
||||
rm -rf build
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user