aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohnny A. Solbu <johnny@solbu.net>2023-01-14 19:41:17 +0100
committerJohnny A. Solbu <johnny@solbu.net>2023-01-14 19:41:17 +0100
commit7576711520529ba7881da849a2ce661a59100670 (patch)
tree6ed78f8b724f1ca66abb4e24399905b722bf2205
parentbd4a8d6e58da63d140bcfa85771e2737f60da9bb (diff)
downloadremove-old-kernels-7576711520529ba7881da849a2ce661a59100670.tar
remove-old-kernels-7576711520529ba7881da849a2ce661a59100670.tar.gz
remove-old-kernels-7576711520529ba7881da849a2ce661a59100670.tar.bz2
remove-old-kernels-7576711520529ba7881da849a2ce661a59100670.tar.xz
remove-old-kernels-7576711520529ba7881da849a2ce661a59100670.zip
mk-pot: Update po-files at the same time
-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