Updated build scripts to create source, Linux x86, and Windows archives.

This commit is contained in:
Steve 2016-05-22 12:10:04 +01:00
parent b4761e43a9
commit 4b20d0f535
3 changed files with 17 additions and 3 deletions

View File

@ -11,7 +11,10 @@ REVISION=$2
SIZE=0
make clean
make
make src-dist
make clean
make LOCALE_DIR=locale
make dist
rm -rf tbftss

View File

@ -25,7 +25,6 @@ cp -r music $OUT
cp -r sound $OUT
cp -r manual $OUT
cp -r locale $OUT
cp CHANGELOG $OUT
cp LICENSE $OUT
cp README.md $OUT

View File

@ -25,7 +25,9 @@ CXXFLAGS += -g -lefence
LFLAGS := `sdl2-config --libs` -lSDL2_mixer -lSDL2_image -lSDL2_ttf -lm
DIST_FILES = data gfx manual music sound src LICENSE makefile* common.mk README.md CHANGELOG
SHARED_FILES = LICENSE README.md data gfx manual music sound
DIST_FILES = $(SHARED_FILES) locale tbftss
SRC_DIST_FILES = $(SHARED_FILES) src makefile* common.mk CHANGELOG
# linking the program.
$(PROG): $(OBJS)
@ -76,6 +78,16 @@ 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 --oneline --decorate >$(PROG)-$(VERSION)/CHANGELOG.raw
tar czf $(PROG)-$(VERSION)-$(REVISION).src.tar.gz $(PROG)-$(VERSION)
mkdir -p dist