Mercurial > hg > forks > geeqie
view po/regen_potfiles.sh @ 2901:ce889887354f
Avoid non-portable == for the test command
The test command doesn't accept `==` as operator. It should be a single `=` for portable use. The `==` is a gnu extension.
Note that the x-trick hasn't been needed for a long, long time. You can reliably write it with quotes:
```
if test "$gtk3" = yes; then
```
but I left that alone since it doesn't hurt other than being ugly.
author | Rhialto The M <Rhialto@users.noreply.github.com> |
---|---|
date | Sat, 06 Oct 2018 18:26:43 +0200 |
parents | f451d676a829 |
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