X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fgen-dot-desktop.sh;h=ea5b3eb71c5cbca18e6bf565fa1badc647bc2146;hb=facb4a1ad3c9e8b2cdf55824680eed2afb91aebe;hp=bb86c01f2ce0068bb524cce9795f8c39b0499eea;hpb=a70857ce808bba36e67a66375290e340dcf75adc;p=pspp diff --git a/src/ui/gui/gen-dot-desktop.sh b/src/ui/gui/gen-dot-desktop.sh index bb86c01f2c..ea5b3eb71c 100644 --- a/src/ui/gui/gen-dot-desktop.sh +++ b/src/ui/gui/gen-dot-desktop.sh @@ -7,7 +7,7 @@ TRANSLATE () extract_string () { - msggrep -K -F -e "$2" $top_builddir/$1 2> /dev/null | msgattrib --translated --no-fuzzy | awk -F \" '/^msgstr "/{print $2}' | grep -v '^$' + msggrep -K -F -e "$2" $top_builddir/$1 2> /dev/null | msgattrib --translated --no-fuzzy | awk -F \" '/^msgstr "/{print $2}' | grep -v '^$' } @@ -21,7 +21,7 @@ printf '[Desktop Entry]\n'; printf 'Name=GNU PSPP\n'; printf "GenericName=$GenericName\n" -for pfile in $POFILES; do +for pfile in $POFILES; do lang=${pfile%%.po} lang=${lang##po/} xlate=`extract_string $pfile "$GenericName"` @@ -32,7 +32,7 @@ done printf "Comment=$Comment\n" -for pfile in $POFILES; do +for pfile in $POFILES; do lang=${pfile%%.po} lang=${lang##po/} xlate=`extract_string $pfile "$Comment"`