build_wads.sh: fix typo
This commit is contained in:
parent
5708e6ea7a
commit
a1c4cf7394
1 changed files with 9 additions and 2 deletions
|
@ -4,6 +4,8 @@
|
||||||
export PATH="$(pwd):$PATH"
|
export PATH="$(pwd):$PATH"
|
||||||
CWD=$(pwd)
|
CWD=$(pwd)
|
||||||
|
|
||||||
|
PALETTE="palette_nofb.lmp"
|
||||||
|
|
||||||
# texture wads
|
# texture wads
|
||||||
build_wads()
|
build_wads()
|
||||||
{
|
{
|
||||||
|
@ -16,6 +18,11 @@ build_wads()
|
||||||
do
|
do
|
||||||
DIRNAME=$(basename "$WADDIR")
|
DIRNAME=$(basename "$WADDIR")
|
||||||
|
|
||||||
|
if [ "$DIRNAME" = "gfx" ]
|
||||||
|
then
|
||||||
|
PALETTE="palette.lmp"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ ! "$DIRNAME" = "." ]
|
if [ ! "$DIRNAME" = "." ]
|
||||||
then
|
then
|
||||||
if [ -f "$WADDIR/WAD3" ]
|
if [ -f "$WADDIR/WAD3" ]
|
||||||
|
@ -23,14 +30,14 @@ build_wads()
|
||||||
printf "WAD3 building %s:\n" "$DIRNAME"
|
printf "WAD3 building %s:\n" "$DIRNAME"
|
||||||
imgtool --genwad3 ../"$DIRNAME".wad ./"$DIRNAME"
|
imgtool --genwad3 ../"$DIRNAME".wad ./"$DIRNAME"
|
||||||
else
|
else
|
||||||
if [ -f "../gfx/palette_nofb.lmp" ]
|
if [ -f "../gfx/$PALETTE" ]
|
||||||
then
|
then
|
||||||
printf "WAD2 Building %s:\n" "$DIRNAME"
|
printf "WAD2 Building %s:\n" "$DIRNAME"
|
||||||
if [ -f "$CWD/$1/texturesrc/$DIRNAME/palette.lmp" ]
|
if [ -f "$CWD/$1/texturesrc/$DIRNAME/palette.lmp" ]
|
||||||
then
|
then
|
||||||
imgtool --palette "$CWD/$1/texturesrc/$DIRNAME/palette.lmp" --genwad2 ../"$DIRNAME".wad ./"$DIRNAME"
|
imgtool --palette "$CWD/$1/texturesrc/$DIRNAME/palette.lmp" --genwad2 ../"$DIRNAME".wad ./"$DIRNAME"
|
||||||
else
|
else
|
||||||
imgtool --palette ../gfx/palette_nofb.lmp --genwad2 ../"$DIRNAME".wad ./"$DIRNAME"
|
imgtool --palette ../gfx/$PALETTE --genwad2 ../"$DIRNAME".wad ./"$DIRNAME"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
printf "WAD2 (using Quake palette) building %s:\n" "$DIRNAME"
|
printf "WAD2 (using Quake palette) building %s:\n" "$DIRNAME"
|
||||||
|
|
Loading…
Reference in a new issue