Removed build directory and make dist. Causes a bit of confusion.
This commit is contained in:
parent
f3aae488a2
commit
7e6d6f229b
|
@ -1,11 +0,0 @@
|
|||
#!/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 $REVISION
|
||||
|
||||
win32/build.sh $VERSION $REVISION
|
|
@ -1,20 +0,0 @@
|
|||
#!/bin/bash -e
|
||||
|
||||
cd `dirname $0`
|
||||
|
||||
BUILDROOT="build/linux"
|
||||
|
||||
cd ../..
|
||||
|
||||
VERSION=$1
|
||||
REVISION=$2
|
||||
SIZE=0
|
||||
|
||||
make clean
|
||||
make src-dist
|
||||
|
||||
make clean
|
||||
make LOCALE_DIR=locale
|
||||
make dist
|
||||
|
||||
rm -rf tbftss
|
|
@ -1,40 +0,0 @@
|
|||
#!/bin/bash -e
|
||||
|
||||
cd `dirname $0`
|
||||
|
||||
BUILDROOT="build/win32"
|
||||
|
||||
cd ../..
|
||||
|
||||
VERSION=$1
|
||||
REVISION=$2
|
||||
FOLDER="tbftss-$1"
|
||||
OUT="$BUILDROOT/$FOLDER"
|
||||
|
||||
make -f makefile.win32 clean
|
||||
make -f makefile.win32
|
||||
|
||||
mkdir -p $OUT
|
||||
rm -rf $OUT/*
|
||||
|
||||
cp tbftss.exe $OUT
|
||||
|
||||
cp -r data $OUT
|
||||
cp -r gfx $OUT
|
||||
cp -r music $OUT
|
||||
cp -r sound $OUT
|
||||
cp -r manual $OUT
|
||||
cp -r locale $OUT
|
||||
cp LICENSE $OUT
|
||||
cp CHANGELOG $OUT
|
||||
cp README.md $OUT
|
||||
|
||||
cp /usr/x86_64-w64-mingw32/bin/*.dll $OUT
|
||||
|
||||
cd $BUILDROOT
|
||||
|
||||
zip -r tbftss-${VERSION}-${REVISION}.win32.zip $FOLDER
|
||||
|
||||
mv *.zip ../../dist
|
||||
|
||||
rm -rf $FOLDER
|
21
makefile
21
makefile
|
@ -73,25 +73,4 @@ uninstall:
|
|||
$(RM) -v $(LOCALE_DIR)/$$lang/LC_MESSAGES/$(PROG).mo; \
|
||||
done
|
||||
|
||||
# prepare an archive for the program
|
||||
dist:
|
||||
$(RM) -rf $(PROG)-$(VERSION)
|
||||
mkdir $(PROG)-$(VERSION)
|
||||
cp -r $(DIST_FILES) $(PROG)-$(VERSION)
|
||||
tar czf $(PROG)-$(VERSION)-$(REVISION).linux-x86.tar.gz $(PROG)-$(VERSION)
|
||||
mkdir -p dist
|
||||
mv $(PROG)-$(VERSION)-$(REVISION).linux-x86.tar.gz dist
|
||||
$(RM) -rf $(PROG)-$(VERSION)
|
||||
|
||||
# prepare an archive for the program
|
||||
src-dist:
|
||||
$(RM) -rf $(PROG)-$(VERSION)
|
||||
mkdir $(PROG)-$(VERSION)
|
||||
cp -r $(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)
|
||||
mkdir -p dist
|
||||
mv $(PROG)-$(VERSION)-$(REVISION).src.tar.gz dist
|
||||
$(RM) -rf $(PROG)-$(VERSION)
|
||||
|
||||
.PHONY: dist
|
||||
|
|
Loading…
Reference in New Issue