r3523 - packages/trunk/fenix/debian
Miriam Ruiz
baby-guest at alioth.debian.org
Thu Aug 2 10:23:57 UTC 2007
Author: baby-guest
Date: 2007-08-02 10:23:57 +0000 (Thu, 02 Aug 2007)
New Revision: 3523
Modified:
packages/trunk/fenix/debian/fenix.sh
Log:
Definitely fixed the script
Modified: packages/trunk/fenix/debian/fenix.sh
===================================================================
--- packages/trunk/fenix/debian/fenix.sh 2007-08-02 10:15:53 UTC (rev 3522)
+++ packages/trunk/fenix/debian/fenix.sh 2007-08-02 10:23:57 UTC (rev 3523)
@@ -22,8 +22,7 @@
if [ -z "$GAME_FILE" ] && [ -z "$ARG" ]; then
FILE_NUM=`ls *.prg 2>/dev/null | wc -l`
if [ "$FILE_NUM" -eq 1 ] ; then
- GAME_FILE="ls *.prg 2>/dev/null"
- echo "Game File: \"$GAME_FILE\"" >&2
+ GAME_FILE=`ls *.prg 2>/dev/null`
else
GAME_FILE=""
fi
@@ -32,8 +31,7 @@
if [ -z "$GAME_FILE" ] && [ -d "$ARG" ]; then
FILE_NUM=`ls "$ARG"/*.prg 2>/dev/null | wc -l`
if [ "$FILE_NUM" -eq 1 ] ; then
- GAME_FILE="`ls "$ARG"/*.prg` 2>/dev/null"
- echo "Game File: \"$GAME_FILE\"" >&2
+ GAME_FILE=`ls "$ARG"/*.prg` 2>/dev/null
else
GAME_FILE=""
echo "Cannot choose a game file in the directory \"$ARG\"" >&2
@@ -41,13 +39,12 @@
fi
fi
-if [ -e "$ARG" ]; then
- FILE_NUM=`ls \"$ARG\" 2>/dev/null | wc -l`
+if [ -z "$GAME_FILE" ] && [ -e "$ARG" ]; then
+ FILE_NUM=`ls "$ARG" 2>/dev/null | wc -l`
if [ "$FILE_NUM" -eq 1 ] ; then
- GAME_FILE=""
- echo "Game File: \"$GAME_FILE\"" >&2
- else
GAME_FILE="$ARG"
+ else
+ GAME_FILE=""
echo "Cannot choose a game file" >&2
fi
fi
@@ -64,9 +61,10 @@
exit 1
fi
-if [ -z "$GAME_FILE" ] || [ ! -e "$GAME_FILE" ]
+if [ -z "$GAME_FILE" ] || [ ! -e "$GAME_FILE" ]; then
echo "File \"$GAME_FILE\" does not exist" >&2
exit 1
fi
-fenix-fxc "$@" -o - | fenix-fxi -
+echo "Game File: \"$GAME_FILE\"" >&2
+fenix-fxc "$GAME_FILE" -o - | fenix-fxi -
More information about the Pkg-games-commits
mailing list