PRC8/nwn/trunk/scripts/build.sh
Jaysyn904 5914ed2ab5 Updated Release Archive
Updated Release Archive.  Fixed Mage-killer prereqs.  Removed old LETO & ConvoCC related files.  Added organized spell scroll store.  Fixed Gloura spellbook. Various TLK fixes.  Reorganized Repo.  Removed invalid user folders. Added DocGen back in.
2023-08-22 10:00:21 -04:00

20 lines
556 B
Bash

#!/bin/sh
twodas=`ls ../2das/*.2da | grep -v CVS | tr '\n' ' '`
gfxs=`ls -d ../gfx/* | grep -v CVS | tr '\n' ' '`
others=`ls -d ../others/* | grep -v CVS | tr '\n' ' '`
scripts=`ls *.nss | tr '\n' ' '`
# Take out the include files
#scripts=""
#for i in $tmp_scripts ; do
# tst=`grep -w main "$i"`
# if test "$tst" ; then
# scripts="$scripts$i "
# fi
#done
sed "s#~~~scripts~~~#$scripts#g" Makefile | sed "s#~~~2das~~~#$twodas#g" | sed "s#~~~others~~~#$others#g" | sed "s#~~~gfxs~~~#$gfxs#g" > Makefile.temp
make -f Makefile.temp $*
rm -f Makefile.temp