]> code.citadel.org Git - citadel.git/blobdiff - citadel/po/citadel-setup/create-pot.sh
* move around pots so launchpad likes us
[citadel.git] / citadel / po / citadel-setup / create-pot.sh
diff --git a/citadel/po/citadel-setup/create-pot.sh b/citadel/po/citadel-setup/create-pot.sh
new file mode 100755 (executable)
index 0000000..74f69ce
--- /dev/null
@@ -0,0 +1,35 @@
+#!/bin/bash
+
+echo Updating citadel.pot from strings in the source code ...
+xgettext \
+       --copyright-holder='The Citadel Project - http://www.citadel.org' \
+        --from-code='utf-8' \
+       -k_ \
+       -o citadel-setup.pot \
+       --add-comments \
+        ../../utils/setup.c 
+
+#xgettext \
+#      --copyright-holder='The Citadel Project - http://www.citadel.org' \
+#        --from-code='utf-8' \
+#      -k_ \
+#      -o citadel-server.pot \
+#      --add-comments \
+#      ../*.c \
+#        `cat ../Make_sources | sed  -e "s;.*+= ;;" ` 
+#
+#
+#xgettext \
+#      --copyright-holder='The Citadel Project - http://www.citadel.org' \
+#        --from-code='utf-8' \
+#      -k_ \
+#      -o citadel-client.pot \
+#      --add-comments \
+#      ../*.c \
+#        ../textclient/*.c
+
+for x in *.po
+do
+       echo Merging citadel-setup.pot into $x ...
+       msgmerge $x citadel-setup.pot -o $x
+done