[goobox] updated script to create POTFILES.in



commit b562d7d1cd39dbdab9f435477ff5586a9ae9e3ca
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Sat Dec 28 18:26:30 2013 +0100

    updated script to create POTFILES.in

 po/update-potfiles.sh |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/po/update-potfiles.sh b/po/update-potfiles.sh
index e6e89e3..8009dcf 100644
--- a/po/update-potfiles.sh
+++ b/po/update-potfiles.sh
@@ -1,13 +1,17 @@
 #!/bin/sh
 
-echo "# DO NOT EDIT.  This file is automatically generated."
 echo "# List of source files which contain translatable strings."
+echo "#"
+echo "# DO NOT EDIT.  This file is automatically generated, to"
+echo "# update the content run the following command:"
+echo "# sh update-potfiles.sh > POTFILES.in"
 echo "[encoding: UTF-8]"
-files=`find .. \( -name '*.c' -o -name '*.h' -o -name '*.cpp' -o -name '*.ui' -o -name '*.schemas.in' -o 
-name "*.gschema.xml.in" -o -name '*.desktop.in.in' -o -name '*.extension.in.in' \) -printf "%P\n" | sort`
+files=`find .. \( -name '*.c' -o -name '*.h' -o -name '*.cpp' -o -name '*.ui' -o -name '*.schemas.in' -o 
-name "*.xml.in" -o -name '*.desktop.in.in' -o -name '*.extension.in.in' \) -printf "%P\n" | sort`
 for f in $files; do
        case $f in
         build/*) ;;
        *.ui) echo "[type: gettext/glade]$f" ;;
+       *.extension.in.in) echo "[type: gettext/ini]$f" ;;
        *) echo $f
        esac
 done


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]