From ea4e685a758ebe958d70ff22a685c17a9998cf23 Mon Sep 17 00:00:00 2001 From: Marc-Etienne VARGENAU Date: Mon, 18 Oct 2010 17:02:27 +0000 Subject: [PATCH] gforge --> src --- tools/update-gettext-files.sh | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/tools/update-gettext-files.sh b/tools/update-gettext-files.sh index 6697e6d..327b5ad 100755 --- a/tools/update-gettext-files.sh +++ b/tools/update-gettext-files.sh @@ -1,16 +1,14 @@ -#! /bin/sh - -if [ -e gforge/translations/gforge.pot ] ; then # We're in the parent dir - cd gforge -elif [ -e ../gforge/translations/gforge.pot ] ; then # We're in tools/ or gforge/ - cd ../gforge -elif [ -e ../translations/gforge.pot ] ; then # In a subdir of gforge +#!/bin/sh +if [ -e src/translations/gforge.pot ] ; then # We're in the parent dir + cd src +elif [ -e ../src/translations/gforge.pot ] ; then # We're in tools/ or src/ + cd ../src +elif [ -e ../translations/gforge.pot ] ; then # In a subdir of src/ cd .. else echo "Couldn't find translations directory..." exit 1 fi - if [ "$1" = --stats ] ; then utils/manage-translations.sh stats else -- 2.1.4