aboutsummaryrefslogtreecommitdiffstats
path: root/mk-pot
diff options
context:
space:
mode:
Diffstat (limited to 'mk-pot')
-rwxr-xr-xmk-pot9
1 files changed, 9 insertions, 0 deletions
diff --git a/mk-pot b/mk-pot
index bbd8b49..eee8417 100755
--- a/mk-pot
+++ b/mk-pot
@@ -56,3 +56,12 @@ cat pot_header.txt > po/remove-old-kernels.pot
cat pot-temp2 >> po/remove-old-kernels.pot
# Delete all tmp files
rm -f pot-temp*
+
+# Add date and time for last pot file change
+sed -i "s/POT-Creation-Date: /&$(date '+%F %R%z')/" po/remove-old-kernels.pot
+
+# Update po files with any string changes from the pot file
+echo "Updating *.po files with any string changes"
+pushd po
+make update-po
+popd