From 7e211ffccc7cb1d0f4e8e0071ee657902a8f031f Mon Sep 17 00:00:00 2001 From: Roland Illig Date: Thu, 19 May 2005 11:21:02 +0000 Subject: [PATCH] Added a script to strip file lines from po files. --- po/README | 4 +++- po/strip-location.sh | 8 ++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100755 po/strip-location.sh diff --git a/po/README b/po/README index cd2c9ec12..a2a5dcf00 100644 --- a/po/README +++ b/po/README @@ -1,2 +1,4 @@ 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 diff --git a/po/strip-location.sh b/po/strip-location.sh new file mode 100755 index 000000000..7984bd84d --- /dev/null +++ b/po/strip-location.sh @@ -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