Add revision number to build folders.
This commit is contained in:
parent
e140c525e2
commit
959621689f
|
@ -1,10 +1,11 @@
|
|||
#!/bin/bash -e
|
||||
|
||||
VERSION=`egrep 'VERSION = ([0-9.+])' ../common.mk | awk '{print $3}'`
|
||||
REVISION=`egrep 'REVISION = ([0-9.+])' ../common.mk | awk '{print $3}'`
|
||||
|
||||
mkdir -p ../dist
|
||||
rm -rf ../dist/*
|
||||
|
||||
linux/build.sh $VERSION
|
||||
linux/build.sh $VERSION $REVISION
|
||||
|
||||
win32/build.sh $VERSION
|
||||
win32/build.sh $VERSION $REVISION
|
||||
|
|
|
@ -7,6 +7,7 @@ BUILDROOT="build/linux"
|
|||
cd ../..
|
||||
|
||||
VERSION=$1
|
||||
REVISION=$2
|
||||
|
||||
make clean
|
||||
make src-dist
|
||||
|
|
|
@ -7,7 +7,8 @@ BUILDROOT="build/win32"
|
|||
cd ../..
|
||||
|
||||
VERSION=$1
|
||||
FOLDER="blobWarsAttrition-$1"
|
||||
REVISION=$2
|
||||
FOLDER="blobWarsAttrition-$1.$2"
|
||||
OUT="$BUILDROOT/$FOLDER"
|
||||
|
||||
make -f makefile.win32 clean
|
||||
|
|
22
makefile
22
makefile
|
@ -76,23 +76,23 @@ uninstall:
|
|||
|
||||
# prepare an archive for the program
|
||||
dist:
|
||||
$(RM) -rf $(PROG)-$(VERSION)
|
||||
mkdir $(PROG)-$(VERSION)
|
||||
cp -rL $(DIST_FILES) $(PROG)-$(VERSION)
|
||||
tar czf $(PROG)-$(VERSION)-$(REVISION).linux-x86.tar.gz $(PROG)-$(VERSION)
|
||||
$(RM) -rf $(PROG)-$(VERSION).$(REVISION)
|
||||
mkdir $(PROG)-$(VERSION).$(REVISION)
|
||||
cp -rL $(DIST_FILES) $(PROG)-$(VERSION).$(REVISION)
|
||||
tar czf $(PROG)-$(VERSION)-$(REVISION).linux-x86.tar.gz $(PROG)-$(VERSION).$(REVISION)
|
||||
mkdir -p dist
|
||||
mv $(PROG)-$(VERSION)-$(REVISION).linux-x86.tar.gz dist
|
||||
$(RM) -rf $(PROG)-$(VERSION)
|
||||
$(RM) -rf $(PROG)-$(VERSION).$(REVISION)
|
||||
|
||||
# prepare an archive for the program
|
||||
src-dist:
|
||||
$(RM) -rf $(PROG)-$(VERSION)
|
||||
mkdir $(PROG)-$(VERSION)
|
||||
cp -rL $(SRC_DIST_FILES) $(PROG)-$(VERSION)
|
||||
git log --pretty=format:"%h%x09%an%x09%ad%x09%s" --date=short >$(PROG)-$(VERSION)/CHANGELOG.raw
|
||||
tar czf $(PROG)-$(VERSION)-$(REVISION).src.tar.gz $(PROG)-$(VERSION)
|
||||
$(RM) -rf $(PROG)-$(VERSION).$(REVISION)
|
||||
mkdir $(PROG)-$(VERSION).$(REVISION)
|
||||
cp -rL $(SRC_DIST_FILES) $(PROG)-$(VERSION).$(REVISION)
|
||||
git log --pretty=format:"%h%x09%an%x09%ad%x09%s" --date=short >$(PROG)-$(VERSION).$(REVISION)/CHANGELOG.raw
|
||||
tar czf $(PROG)-$(VERSION)-$(REVISION).src.tar.gz $(PROG)-$(VERSION).$(REVISION)
|
||||
mkdir -p dist
|
||||
mv $(PROG)-$(VERSION)-$(REVISION).src.tar.gz dist
|
||||
$(RM) -rf $(PROG)-$(VERSION)
|
||||
$(RM) -rf $(PROG)-$(VERSION).$(REVISION)
|
||||
|
||||
.PHONY: dist
|
||||
|
|
Loading…
Reference in New Issue