5 # rest: command line options to use
9 cp "$demo" data/"$demobase"
11 USE_RLWRAP=no strace -qo strace.txt -f -e trace=open ./all run -nohome -readonly -forceqmenu -window "$@" -demo "$demobase"
16 grep '^[0-9]* *open("' strace.txt |\
18 grep '^data/[^/]*\.pk3dir/' |\
32 while [ -n "$allfiles" ]; do
36 [ -f "$f" ] || continue
46 <"$f" include_as "$fn"
48 # also include the map pk3 content
55 unzip ../../data/"$n"-*.pk3
57 allfiles=$allfiles" `find data/temp-$n -type f`"
60 <"$f" include_as "$fn"
67 export dp_jpeg_if_not_dds=false
68 export jpeg_qual_rgb=70
77 find . -type f -print0 | xargs -0 ../misc/tools/cached-converter.sh
79 mv data/"$demobase" output/
80 echo "-xonotic -nohome -readonly -forceqmenu +bind ESCAPE quit $* -demo $demobase" > output/darkplaces.opt
82 ( cd output && 7za a -tzip -mx=9 ../output.pk3 . )
83 cp "$xonotic" output.exe
84 cat output.pk3 >> output.exe