From 8cefe9d5c4bcd531a207f90b4c1d3208bed7ca11 Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Sun, 11 Sep 2011 20:28:12 +1200 Subject: [PATCH] Adjust how we find AWL when building relative strings. --- scripts/po/rebuild-translations.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/scripts/po/rebuild-translations.sh b/scripts/po/rebuild-translations.sh index a6301260..71916153 100755 --- a/scripts/po/rebuild-translations.sh +++ b/scripts/po/rebuild-translations.sh @@ -13,10 +13,13 @@ APPLICATION="davical" AWL_LOCATION="../awl" if [ ! -d "${AWL_LOCATION}" ]; then - AWL_LOCATION=/usr/share/awl + AWL_LOCATION="`find .. -type d -name 'awl-*.*'`" if [ ! -d "${AWL_LOCATION}" ]; then - echo "I can't find a location for the AWL libraries and I need those strings too" - exit 1 + AWL_LOCATION=/usr/share/awl + if [ ! -d "${AWL_LOCATION}" ]; then + echo "I can't find a location for the AWL libraries and I need those strings too" + exit 1 + fi fi fi