diff options
-rwxr-xr-x | po/create_placeholder | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/po/create_placeholder b/po/create_placeholder index be7ed316..e4b01bcf 100755 --- a/po/create_placeholder +++ b/po/create_placeholder @@ -1,19 +1,16 @@ #!/bin/sh -cd .. echo -e "\ /* this is a placeholder so that xgettext can find the translatable * strings. This file is automatically generated, look at - * po/create_placeholder + * ./create_placeholder */ char *foobar[] = { " > placeholder.h.$$ -cat `grep -v placeholder.h po/POTFILES.in` | \ - grep '$ECHO ".*"' | \ - sed 's/^.*$ECHO \(".*"\)/N_(\1),/g' >> placeholder.h.$$ +cat $* | perl -ne 's/\$ECHO\s+(".*")/N_($1),/g and print' >> placeholder.h.$$ -for i in `grep -v placeholder.h po/POTFILES.in` +for i in $* do - po/pl_create_placeholder $i >> placeholder.h.$$ + ./pl_create_placeholder $i >> placeholder.h.$$ done echo "};" >> placeholder.h.$$ |