[or-cvs] r20209: {translation} fixed the logging (translation/trunk/tools/gsoc09)

runa at seul.org runa at seul.org
Mon Aug 3 15:23:04 UTC 2009


Author: runa
Date: 2009-08-03 11:23:04 -0400 (Mon, 03 Aug 2009)
New Revision: 20209

Modified:
   translation/trunk/tools/gsoc09/wml2po.sh
Log:
fixed the logging

Modified: translation/trunk/tools/gsoc09/wml2po.sh
===================================================================
--- translation/trunk/tools/gsoc09/wml2po.sh	2009-08-03 13:23:41 UTC (rev 20208)
+++ translation/trunk/tools/gsoc09/wml2po.sh	2009-08-03 15:23:04 UTC (rev 20209)
@@ -40,7 +40,7 @@
 
 # This is the temp logfile. Leave this line even if you don't want to
 # log. This will be deleted when the script is done.
-tmplog="tmp.log"
+tmplog="`dirname $wmldir`/tmp.log"
 
 ### end config ###
 
@@ -62,6 +62,9 @@
 	echo `date` > $logfile
 fi
 
+# Create the temp log
+touch $tmplog
+
 # cd to the right directory so we can commit the files later
 cd "$podir"
 
@@ -72,9 +75,6 @@
 # For every wml, update po
 for file in $wml ; do
 
-	# Create the temp log
-	touch $tmplog
-	
 	# Get the basename of the file we are dealing with
 	wmlfile=`basename $file`
 
@@ -221,7 +221,7 @@
 	then
 		if [ `cat $tmplog | grep "$popath/$pofile" | wc -l` -eq "0" ]
 		then
-			echo "could not process: " "$pofile" >> $logfile
+			echo "could not process: " "$file" >> $logfile
 		fi
 	fi
 



More information about the tor-commits mailing list