6 # rest: command line options to use
10 cp "$demo" data/"$demobase"
12 strace -qo strace.txt -f -e trace=open ./all run -nohome -readonly -forceqmenu -window "$@" -demo "$demobase"
17 grep '^[0-9]* *open("' strace.txt |\
19 grep '^data/[^/]*\.pk3dir/' |\
33 while [ -n "$allfiles" ]; do
37 [ -f "$f" ] || continue
47 <"$f" include_as "$fn"
49 # also include the map pk3 content
56 unzip ../../data/"$n"-*.pk3
58 allfiles=$allfiles" `find data/temp-$n -type f`"
61 <"$f" include_as "$fn"
68 export dp_jpeg_if_not_dds=false
69 export jpeg_qual_rgb=80
78 find . -type f -print0 | xargs -0 ../misc/tools/cached-converter.sh
80 mv data/"$demobase" output/
81 echo "-xonotic -nohome -readonly -forceqmenu +bind ESCAPE quit $* -demo $demobase" > output/darkplaces.opt
83 ( cd output && 7za a -tzip -mx=9 ../output.pk3 . )
84 cp "$xonotic" output.exe
85 $strip --strip-unneeded output.exe
86 cat output.pk3 >> output.exe