File: remake_backend.po.in

package info (click to toggle)
xsane 0.998-6
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 16,508 kB
  • ctags: 7,713
  • sloc: ansic: 46,136; makefile: 714; sh: 197; sed: 50
file content (10 lines) | stat: -rw-r--r-- 322 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
if [ $# != 1 ]
then
echo "Usage: remake_backend.po.in file[.po.in]"
exit -1
fi   
cat $1.po.in | sed -e "/#original text/D" -e "/msgid/P" -e "s/msgid /_/g" - | sed -e "s/msgid/#original text:/g" >$1.po.in.tmp
gcc -E -P - <$1.po.in.tmp | sed -e "s/^_/msgid /g" - | cat newbackend.po.in.header - >$1.po.in
rm $1.po.in.tmp