diff options
author | Frans Pop <elendil@planet.nl> | 2005-10-07 22:29:26 +0000 |
---|---|---|
committer | Frans Pop <elendil@planet.nl> | 2005-10-07 22:29:26 +0000 |
commit | fc6902c2893c215eb717faf8b78e07bccee6ea7d (patch) | |
tree | fa405f8223a18dee740a02a1ee1df43611020013 | |
parent | b83513b9bff808557ef198121664bfeb5b19a00f (diff) | |
download | installation-guide-fc6902c2893c215eb717faf8b78e07bccee6ea7d.zip |
Create WORKDIR if it doesn't exist yet
-rwxr-xr-x | scripts/merge_xml | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/scripts/merge_xml b/scripts/merge_xml index 561a9a734..64978eb3c 100755 --- a/scripts/merge_xml +++ b/scripts/merge_xml @@ -14,14 +14,16 @@ language=${1:-pl} SCRIPTDIR="./scripts" BUILDDIR="./build" + +LANGDIR="./$language" +[ -d $LANGDIR ] || exit 1 + if [ -z "$PO_USEBUILD" ] ; then WORKDIR="./integrated" else WORKDIR="$BUILDDIR/build.po" fi -LANGDIR="./$language" - -[ -d $LANGDIR ] || exit 1 +[ -d $WORKDIR ] || mkdir -p $WORKDIR TEMPDIR=/tmp/merge_xml.$$ LOG=$TEMPDIR/merge_xml.$language.log |