]> git.xonotic.org Git - xonotic/xonotic.git/commitdiff
merge changes to some scripts done for function2012
authorRudolf Polzer <divverent@xonotic.org>
Tue, 2 Oct 2012 08:24:43 +0000 (10:24 +0200)
committerRudolf Polzer <divverent@xonotic.org>
Tue, 2 Oct 2012 08:24:43 +0000 (10:24 +0200)
misc/tools/demopacker.sh
misc/tools/midi2cfg-ng.pl

index 725631725ea85c6e33d8293eb15d07397bc472d2..44f91b1e2cb759401106635b69491775d75b29a1 100755 (executable)
@@ -1,7 +1,6 @@
 #!/bin/sh
 
 xonotic=$1; shift
-strip=$1; shift
 demo=$1; shift
 # rest: command line options to use
 
@@ -9,7 +8,7 @@ demobase=${demo##*/}
 
 cp "$demo" data/"$demobase"
 
-strace -qo strace.txt -f -e trace=open ./all run -nohome -readonly -forceqmenu -window "$@" -demo "$demobase"
+USE_RLWRAP=no strace -qo strace.txt -f -e trace=open ./all run -nohome -readonly -forceqmenu -window "$@" -demo "$demobase"
 
 allfiles()
 {
@@ -66,8 +65,8 @@ done
 
 export do_jpeg=true
 export dp_jpeg_if_not_dds=false
-export jpeg_qual_rgb=80
-export jpeg_qual_a=95
+export jpeg_qual_rgb=70
+export jpeg_qual_a=90
 export do_dds=false
 export do_ogg=true
 export ogg_ogg=true
@@ -82,5 +81,4 @@ echo "-xonotic -nohome -readonly -forceqmenu +bind ESCAPE quit $* -demo $demobas
 rm output.pk3
 ( cd output && 7za a -tzip -mx=9 ../output.pk3 . )
 cp "$xonotic" output.exe
-$strip --strip-unneeded output.exe
 cat output.pk3 >> output.exe
index 7b9fcd22233aa1361f24be896fe8a4ec58011fdc..4fcf9760a22134d54dbbfbab75b48151bc961fc7 100755 (executable)
@@ -377,6 +377,10 @@ sub busybot_cmd_bot_execute($$@)
                {
                        $commands .= sprintf "%s\n", buildstring @{$_}[1..@$_-1];
                }
+               else
+               {
+                       warn "Invalid command: @$_";
+               }
        }
 
        return 1;