Mercurial > geeqie.yaz
changeset 588:4581d3f03d22
Modify regen_potfiles.sh to generate a patch instead of
directly applying changes to POTFILES.in.
author | zas_ |
---|---|
date | Mon, 05 May 2008 20:49:40 +0000 |
parents | 5963c394ba53 |
children | 46ddfaf13235 |
files | po/regen_potfiles.sh |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/po/regen_potfiles.sh Mon May 05 19:20:46 2008 +0000 +++ b/po/regen_potfiles.sh Mon May 05 20:49:40 2008 +0000 @@ -1,3 +1,7 @@ #!/bin/sh -(cd .. ; grep -l 'N\?_[[:space:]]*(.*)' ./src/*.c) > POTFILES.in +#generate a patch to update POTFILES.in +#Use like this: ./regen_potfiles.sh | patch -p0 +(cd .. ; grep -l 'N\?_[[:space:]]*(.*)' ./src/*.c) > POTFILES.in.$$ +diff -u POTFILES.in POTFILES.in.$$ +rm -f POTFILES.in.$$