[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r20135: {translation} quick fix (translation/trunk/tools/gsoc09)
Author: runa
Date: 2009-07-24 08:34:21 -0400 (Fri, 24 Jul 2009)
New Revision: 20135
Modified:
translation/trunk/tools/gsoc09/wml2po.sh
Log:
quick fix
Modified: translation/trunk/tools/gsoc09/wml2po.sh
===================================================================
--- translation/trunk/tools/gsoc09/wml2po.sh 2009-07-24 12:28:02 UTC (rev 20134)
+++ translation/trunk/tools/gsoc09/wml2po.sh 2009-07-24 12:34:21 UTC (rev 20135)
@@ -108,12 +108,15 @@
rm -f "$popath/$dir/$pofile"
fi
- # Set the right encoding and charset
- sed -i '1,/CHARSET/ s/CHARSET/UTF-8/' "$popath/$dir/$pofile"
- sed -i '1,/ENCODING/ s/ENCODING/8bit/' "$popath/$dir/$pofile"
+ if [ $content != 0 ]
+ then
+ # Set the right encoding and charset
+ sed -i '1,/CHARSET/ s/CHARSET/UTF-8/' "$popath/$dir/$pofile"
+ sed -i '1,/ENCODING/ s/ENCODING/8bit/' "$popath/$dir/$pofile"
- # And add it to the repository
- svn add "$popath/$dir/$pofile"
+ # And add it to the repository
+ svn add "$popath/$dir/$pofile"
+ fi
fi
fi