[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] r20094: {translation} we do not need to svn add translated .wml files (translation/trunk/tools/gsoc09)



Author: runa
Date: 2009-07-20 11:30:34 -0400 (Mon, 20 Jul 2009)
New Revision: 20094

Modified:
   translation/trunk/tools/gsoc09/po2wml.sh
Log:
we do not need to svn add translated .wml files

Modified: translation/trunk/tools/gsoc09/po2wml.sh
===================================================================
--- translation/trunk/tools/gsoc09/po2wml.sh	2009-07-20 04:44:39 UTC (rev 20093)
+++ translation/trunk/tools/gsoc09/po2wml.sh	2009-07-20 15:30:34 UTC (rev 20094)
@@ -76,8 +76,7 @@
 	fi
 
 	# If the file did not exist before running
-	# po4a-translate but it does exist now, add the file to
-	# the repository.
+	# po4a-translate, check if it exists now.
 	if [ $wmlexist = 0 ]
 		then
 			if [ -e "$wmldir/$indir/$wmlfile" ]
@@ -86,18 +85,12 @@
 				# content.
 				content=`cat "$file" | grep '^#[.]' | wc -l`
 
-				# If the po file has some content, add
-				# the resulting wml file to the
-				# repository, if not - delete it.
-				if [ $content != 0 ] 
+				# If the po file does not have any
+				# content, delete it.
+				if [ $content = 0 ] 
 				then
-					svn add "$wmldir/$indir/$wmlfile"
-				else
-					rm -f "$wmldir/$indir/$wmlfile"
+	 				rm -f "$wmldir/$indir/$wmlfile"
 				fi
 			fi
-		fi
-
-	# Commit the files
-	svn ci -m 'automatically updated the translated documents'
+	fi
 done