Mercurial > hg > demos > krapula
changeset 38:ea2d19de8932
Improve package building process.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 13 Oct 2012 16:58:29 +0300 |
parents | fdbf6e90804d |
children | 57d67886153e |
files | build-data.sh build.cfg build.sh |
diffstat | 3 files changed, 14 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/build-data.sh Sat Oct 13 16:36:40 2012 +0300 +++ b/build-data.sh Sat Oct 13 16:58:29 2012 +0300 @@ -1,10 +1,15 @@ #!/bin/sh +. ./build.cfg CPWD=`pwd` -PACKED="$CPWD/packed.bin" +CPACKED="$CPWD/packed.bin" -if test ! -x "$PACKED"; then +if test ! -x "$CPACKED"; then make -f Makefile clean - make -f Makefile EXEEXT=".bin" BINPATH="$CPWD" "$PACKED" + make -f Makefile EXEEXT=".bin" BINPATH="$CPWD" "$CPACKED" fi -cd "$CPWD/data" && $PACKED -c -p "$CPWD/exe/orvellys.dat" * +cd "$CPWD/data" && $CPACKED -c -p "$CPWD/exe/$CPACKFILE" * + +if test ! -e "$CPWD/$CPACKFILE"; then + ln -s "$CPWD/exe/$CPACKFILE" "$CPWD/$CPACKFILE" +fi