forked from pool/gettext-runtime
Marcus Meissner
5348f8fc76
fix 'echo -e' in cvs.sh script that may be unsupported in some POSIX-complete shells OBS-URL: https://build.opensuse.org/request/show/266569 OBS-URL: https://build.opensuse.org/package/show/Base:System/gettext-runtime?expand=0&rev=102
18 lines
1.1 KiB
Diff
18 lines
1.1 KiB
Diff
diff -Ndurp gettext-0.19.3/gettext-tools/examples/hello-c++-kde/admin/cvs.sh gettext-0.19.3-fix-bashisms/gettext-tools/examples/hello-c++-kde/admin/cvs.sh
|
|
--- gettext-0.19.3/gettext-tools/examples/hello-c++-kde/admin/cvs.sh 2013-05-02 11:40:04.000000000 +0300
|
|
+++ gettext-0.19.3-fix-bashisms/gettext-tools/examples/hello-c++-kde/admin/cvs.sh 2014-12-28 16:59:45.300732878 +0200
|
|
@@ -423,7 +423,12 @@ for subdir in $dirs; do
|
|
fi
|
|
fi
|
|
if test -n "`grep -r KAboutData *.c* *.C* 2>/dev/null`"; then
|
|
- echo -e 'i18n("_: NAME OF TRANSLATORS\\n"\n"Your names")\ni18n("_: EMAIL OF TRANSLATORS\\n"\n"Your emails")' > _translatorinfo.cpp
|
|
+ cat > _translatorinfo.cpp <<-EOF
|
|
+ i18n("_: NAME OF TRANSLATORS\n"
|
|
+ "Your names")
|
|
+ i18n("_: EMAIL OF TRANSLATORS\n"
|
|
+ "Your emails")
|
|
+ EOF
|
|
else echo " " > _translatorinfo.cpp
|
|
fi
|
|
perl -e '$mes=0; while (<STDIN>) { next if (/^(if|else|endif)\s/); if (/^messages:/) { $mes=1; print $_; next; } if ($mes) { if (/$\\(XGETTEXT\)/ && / -o/) { s/ -o \$\(podir\)/ _translatorinfo.cpp -o \$\(podir\)/ } print $_; } else { print $_; } }' < Makefile.am | egrep -v '^include ' > _transMakefile
|