The following commit has been merged in the debian_source branch:
commit 815e2bc3e3f4227fb2428699d1264c1ac6e5798d
Author: Arand Nash <[email protected]>
Date:   Mon Oct 24 19:44:46 2011 +0200

    fix script argument parsing

diff --git a/debian/scripts/lugaru b/debian/scripts/lugaru
index b90ff19..e23c46f 100644
--- a/debian/scripts/lugaru
+++ b/debian/scripts/lugaru
@@ -1,16 +1,18 @@
 #!/bin/sh
 
-case "$arg" in
-    -h|-help|--help)
-       exec man lugaru
-        ;;
-    -fullscreen)
-        :
-        ;;
-    *)
-        CMD_OPTIONS="-windowed -nomousegrab"
-        ;;
-esac
+for arg in "$@"; do
+    case "$arg" in
+        -h|-help|--help)
+            exec man lugaru
+            ;;
+        -fullscreen)
+            :
+            ;;
+        *)
+            CMD_OPTIONS="-windowed -nomousegrab"
+            ;;
+    esac
+done
 
 cd /usr/lib/lugaru
 exec ./lugaru "$CMD_OPTIONS" ${1+"$@"}

-- 
Packaging for Lugaru HD

_______________________________________________
Pkg-games-commits mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits

Reply via email to