]> git.sesse.net Git - kdenlive/commitdiff
Update Messages.sh to be usable by Script Kiddy
authorAlberto Villa <avilla@FreeBSD.org>
Wed, 9 Nov 2011 14:19:36 +0000 (15:19 +0100)
committerAlberto Villa <avilla@FreeBSD.org>
Wed, 9 Nov 2011 14:19:36 +0000 (15:19 +0100)
I'll be back on this one day.

Messages.sh

index 7b56076dfd3b359b71e0d0ee62b1651051773d78..31768f642bc4aeef80cf1b61da596326715a5308 100755 (executable)
@@ -1,33 +1,8 @@
-#! /bin/sh
-EXTRACTRC=`which extractrc`
-# XGETTEXT="`which xgettext` --kde -ki18n --no-location -s "
-XGETTEXT="`which xgettext` -s "
-podir=`pwd`/po
-kdenlive_subdirs="src src/widgets renderer plugins"
+#!bin/sh
 
+kdenlive_subdirs="plugins renderer src src/widgets"
 
-if [ $(expr length "${EXTRACTRC}") -eq 0 ]
-then
-    echo "extractrc not found. Please install it (it is maybe in the kdesdk-scripts package)."
-    exit 1
-fi
+$EXTRACTRC --tag=name --tag=description --tag=label --tag=comment --tag=paramlistdisplay data/*.rc effects/*.xml >> rc.cpp
+$EXTRACTRC `find $kdenlive_subdirs -name \*.rc -o -name \*.ui` >> rc.cpp
 
-
-kde_inc=${includedir:-${KDEDIR:-@CMAKE_INSTALL_PREFIX@}/include/kde}/kde.pot
-
-if [ -f ${kde_inc} ]; then
-   kde_inc=" -x ${kde_inc} "
-else
-   kde_inc=""
-fi
-
-$EXTRACTRC --tag=name --tag=description --tag=label --tag=comment --tag=paramlistdisplay effects/*.xml data/*.rc >> rc.cpp || exit 11
-
-$EXTRACTRC `find $kdenlive_subdirs -name \*.ui` >> rc.cpp || exit 11
-$EXTRACTRC `find $kdenlive_subdirs -name \*.rc` >> rc.cpp || exit 11
-
-$XGETTEXT --from-code=utf-8 -C -kde -ci18n -ki18n:1 -ki18nc:1c,2 -ki18np:1,2 -ki18ncp:1c,2,3 -ktr2i18n:1 \
-        -kI18N_NOOP:1 -kI18N_NOOP2:1c,2 -ktranslate -kaliasLocale -kki18n:1 -kki18nc:1c,2 -kki18np:1,2 -kki18ncp:1c,2,3 --add-comments=\"TRANSLATORS:\" ${kde_inc} `find $kdenlive_subdirs -name \*.cpp -o -name \*.h` *.cpp -o $podir/kdenlive.pot
-
-#$XGETTEXT -C -kki18n -ki18n -ktr2i18n -kI18N_NOOP -ktr `find $kdenlive_subdirs -name \*.cpp -o -name \*.h` *.cpp -o $podir/kdenlive.pot
-rm -f rc.cpp
+$XGETTEXT `find $kdenlive_subdirs -name \*.cpp -o -name \*.h` -o $podir/kdenlive.pot