This is an automated email from the git hooks/post-receive script. roam-guest pushed a commit to branch master in repository fenix.
commit af104bfb152c2c41bdd3513b54f44d1714696074 Author: Miriam Ruiz <[email protected]> Date: Thu Aug 2 10:23:57 2007 +0000 Definitely fixed the script --- debian/fenix.sh | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/debian/fenix.sh b/debian/fenix.sh index 7450cd6..c231663 100755 --- a/debian/fenix.sh +++ b/debian/fenix.sh @@ -22,8 +22,7 @@ GAME_FILE="" 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 @@ fi 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 @@ if [ -z "$GAME_FILE" ] && [ -d "$ARG" ]; then 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 @@ if [ -z "$GAME_FILE" ] || [ ! -z "$2" ]; then 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 - -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/fenix.git _______________________________________________ Pkg-games-commits mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits

