Mercurial > geeqie
view po/regen_potfiles.sh @ 1788:6a88c55c6f68
copy_file(): remove incomplete file on error (bug 2890715)
The behavior changed, data is first written to a temporary file,
which is unlinked in case of error, then the tempfile is renamed
to the final name.
Size of buffer was increased from 4k to 16k.
author | zas_ |
---|---|
date | Sun, 10 Jan 2010 14:23:29 +0000 |
parents | 351dd18c7db0 |
children |
line wrap: on
line source
#!/bin/sh #generate a patch to update POTFILES.in #Use like this: ./regen_potfiles.sh | patch -p0 TMP=POTFILES.in.$$ ((find ../src/ -type f -name '*.c' ; find ../ -type f -name '*.desktop.in') | while read f; do (echo $f | sed 's#^../##') done) | sort > $TMP diff -u POTFILES.in $TMP rm -f $TMP