summaryrefslogtreecommitdiffstats
path: root/po/create_placeholder
diff options
context:
space:
mode:
Diffstat (limited to 'po/create_placeholder')
-rwxr-xr-xpo/create_placeholder16
1 files changed, 12 insertions, 4 deletions
diff --git a/po/create_placeholder b/po/create_placeholder
index 13dd0024..13d8310e 100755
--- a/po/create_placeholder
+++ b/po/create_placeholder
@@ -8,10 +8,18 @@ echo -e "\
char *foobar[] = { " > placeholder.h.$$
cat ../urpmf | perl -ne 's/.*\$ECHO\s+(".*").*/N_($1),/g and print' >> placeholder.h.$$
-for i in $*
-do
- ./pl_create_placeholder $i >> placeholder.h.$$
-done
+if [ "$*" = "" ]; then
+ for i in ../_irpm ../urpm.pm ../urpmf ../urpmi ../urpmi.addmedia \
+ ../urpmi.update ../urpmi.removemedia ../urpmq
+ do
+ ./pl_create_placeholder $i >> placeholder.h.$$
+ done
+else
+ for i in $*
+ do
+ ./pl_create_placeholder $i >> placeholder.h.$$
+ done
+fi
echo "};" >> placeholder.h.$$