Added a script to strip file lines from po files.

This commit is contained in:
Roland Illig 2005-05-19 11:21:02 +00:00
parent 345d85309a
commit 7e211ffccc
2 changed files with 11 additions and 1 deletions

View File

@ -1,2 +1,4 @@
When you commit a translation, please strip the #: lines before. This When you commit a translation, please strip the #: lines before. This
makes it much easier to view diffs. makes it much easier to view diffs. Example:
./strip-location *.po

8
po/strip-location.sh Executable file
View File

@ -0,0 +1,8 @@
#! /bin/sh
set -e
for i in "$@"; do
i="./$i"
sed '/^#:/d' < "$i" > "$i.tmp"
mv -f "$i.tmp" "$i"
done