[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r20151: {translation} create the subdirectory if it does not exist (translation/trunk/tools/gsoc09)
Author: runa
Date: 2009-07-26 12:28:42 -0400 (Sun, 26 Jul 2009)
New Revision: 20151
Modified:
translation/trunk/tools/gsoc09/wml2po.sh
Log:
create the subdirectory if it does not exist
Modified: translation/trunk/tools/gsoc09/wml2po.sh
===================================================================
--- translation/trunk/tools/gsoc09/wml2po.sh 2009-07-26 15:29:52 UTC (rev 20150)
+++ translation/trunk/tools/gsoc09/wml2po.sh 2009-07-26 16:28:42 UTC (rev 20151)
@@ -76,17 +76,26 @@
for dir in $lang ; do
# We need to have the correct, full path to the po
- # directory for the file we are working on
+ # directory for the file we are working on.
+ # Also, did the subdirectory exist prior to running this
+ # script? If not, create it now and add it to the
+ # repository.
if [ $onedirup = $wmldir ]
then
popath="$podir/$dir"
else
popath="$podir/$dir/$onedirup"
+
+ # Check if the directory exists. If it doesn't,
+ # create it.
+ if [ ! -d "$podir/$dir/$onedirup" ]
+ then
+ svn mkdir "$podir/$dir/$onedirup"
+ fi
fi
- # We need to know if the po file exist before we run
- # po4a-updatepo. If it doesn't, po4a-gettextize will
- # create it.
+ # Did the po file exist prior to running this script?
+ # If not, po4a-gettextize will create it.
if [ -e "$popath/$pofile" ]
then
poexist=1