[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: www/areas/l10n/teams/el/scripts
From: Nicolas Ternisien <nicolas.ternisien () gmail ! com>
Date: 2007-06-25 22:32:06
Message-ID: 1182810726.084986.20134.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 680336 by ternisien:
Automatically create the temp folder
M +6 -2 l10n-create-compendium
--- trunk/www/areas/l10n/teams/el/scripts/l10n-create-compendium #680335:680336
@@ -15,8 +15,6 @@
exit 3
}
-
-
test -r /etc/el-l10n-scripts.conf || confNotFound
source /etc/el-l10n-scripts.conf 2>/dev/null || confHasErrors
@@ -25,7 +23,13 @@
test -d "${POS[$n]}" && test -w "${POS[$n]}" || dirError "${POS[$n]}"
n=$(($n+1))
done
+
+# First time, we create the temp folder if it does not exist
+test -d "$TMP" && test -w "$TMP" || mkdir -p "$TMP"
+
+# If the creation was impossible, display an error
test -d "$TMP" && test -w "$TMP" || dirError "$TMP"
+
test -d "$FINAL_DEST" && test -w "$FINAL_DEST" || dirError "$FINAL_DEST"
# temp files
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic