Re: Piqure de rappel: canoniser les fichiers po [et kbabel] (fut: une podebconferie)
Dans un acces de grande bonte, je vous donne l'attachement promis la
derniere fois, mais bien evidement oublie...
--
It took me fifteen years to discover I had no talent for programming,
but couldn't give it up because by that time I was too famous.
--- Anonymous
#! /bin/sh
# Makes a clean diff of two po files, ignoring ignorable changes
if [ "x$1" = "xhelp" -o "x$1" = "x--help" ] ; then
echo "msgdiff: produce a clean diff of two po files, ignoring ignorable changes."
echo "usage: msgdiff orig new"
exit 0;
fi
if [ $# != 2 ] ; then
echo "usage: msgdiff orig new"
exit 1;
fi
tmp1=`mktemp /tmp/msgdiff.XXXXXXXXXXXX`
msgcat $1 > $tmp1
tmp2=`mktemp /tmp/msgdiff.XXXXXXXXXXXX`
msgcat $2 > $tmp2
diff -u -I '^#:' -I 'PO-Revision-Date' -I 'POT-Creation-Date' $tmp1 $tmp2 | \
sed -e "s|^--- $tmp1|--- $1|" \
-e "s|^\+\+\+ $tmp2|+++ $2|"
rm -f $tmp1 $tmp2
Reply to: