annotate build-data.sh @ 12:4bfeef9f361a

Rename data PACK / blob building script.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 29 Sep 2012 06:46:15 +0300
parents pakkaa.sh@a712382dcf6a
children ea2d19de8932
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
1 #!/bin/sh
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
2 CPWD=`pwd`
11
a712382dcf6a Improve data blob building.
Matti Hamalainen <ccr@tnsp.org>
parents: 5
diff changeset
3 PACKED="$CPWD/packed.bin"
a712382dcf6a Improve data blob building.
Matti Hamalainen <ccr@tnsp.org>
parents: 5
diff changeset
4
0
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
5 if test ! -x "$PACKED"; then
11
a712382dcf6a Improve data blob building.
Matti Hamalainen <ccr@tnsp.org>
parents: 5
diff changeset
6 make -f Makefile clean
a712382dcf6a Improve data blob building.
Matti Hamalainen <ccr@tnsp.org>
parents: 5
diff changeset
7 make -f Makefile EXEEXT=".bin" BINPATH="$CPWD" "$PACKED"
0
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
8 fi
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
9
11
a712382dcf6a Improve data blob building.
Matti Hamalainen <ccr@tnsp.org>
parents: 5
diff changeset
10 cd "$CPWD/data" && $PACKED -c -p "$CPWD/exe/orvellys.dat" *