3 # input: a .shader file
4 # parameters: in and out .bsp file
6 BSPTOOL="${0%/*}"/bsptool.pl
13 shaders=`"$BSPTOOL" "$in" -S`
15 newshaders=`cat | grep '^[^ {}]'`
20 for shader in $shaders; do
21 if [ -z "$list" ]; then
22 echo >&2 "Filling list..."
23 list=`echo "$newshaders" | sort -R`$LF
26 noshader|NULL|textures/common/*)
31 set -- "$@" "-S$shader=$item"
36 set -- "$BSPTOOL" "$in" "$@" -o"$out"