summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrans Pop <elendil@planet.nl>2005-12-03 10:34:24 +0000
committerFrans Pop <elendil@planet.nl>2005-12-03 10:34:24 +0000
commita8c825ebca4a3ac27c962121eeb5ba75091c2c7f (patch)
treea66851da30f0e26e992e5ad0013ef1a1afd053fc
parent25a4665934e17e0afbb70fba2513c673dbd05d49 (diff)
downloadinstallation-guide-a8c825ebca4a3ac27c962121eeb5ba75091c2c7f.zip
Set proper POT-Creation-Date
-rw-r--r--debian/changelog3
-rw-r--r--po/pot/administrivia.pot2
-rw-r--r--po/pot/bookinfo.pot2
-rw-r--r--po/pot/boot-installer.pot2
-rw-r--r--po/pot/boot-new.pot2
-rw-r--r--po/pot/gpl.pot2
-rw-r--r--po/pot/hardware.pot2
-rw-r--r--po/pot/install-methods.pot2
-rw-r--r--po/pot/installation-howto.pot2
-rw-r--r--po/pot/partitioning.pot2
-rw-r--r--po/pot/post-install.pot2
-rw-r--r--po/pot/preface.pot2
-rw-r--r--po/pot/preparing.pot2
-rw-r--r--po/pot/preseed.pot2
-rw-r--r--po/pot/random-bits.pot2
-rw-r--r--po/pot/using-d-i.pot2
-rw-r--r--po/pot/welcome.pot2
-rwxr-xr-xscripts/update_pot18
18 files changed, 29 insertions, 24 deletions
diff --git a/debian/changelog b/debian/changelog
index 2024b39b5..37316e60f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,11 +5,12 @@ installation-guide (20051026) UNRELEASED; urgency=low
* Move documentation on preseeding to separate appendix for etch.
* Use new, more flexible perl script to extract example preseed file from
new appendix.
+ * Set proper POT-Creation-Date when generating new POT files.
[ Joey Hess ]
* Update installation report template and instructions for etch.
- -- Frans Pop <fjp@debian.org> Fri, 25 Nov 2005 18:49:41 +0100
+ -- Frans Pop <fjp@debian.org> Sat, 3 Dec 2005 11:30:36 +0100
installation-guide (20051025) unstable; urgency=low
diff --git a/po/pot/administrivia.pot b/po/pot/administrivia.pot
index 877a281f6..3040eb136 100644
--- a/po/pot/administrivia.pot
+++ b/po/pot/administrivia.pot
@@ -6,7 +6,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
-"POT-Creation-Date: 2001-02-09 01:25+0100\n"
+"POT-Creation-Date: 2005-12-03 10:27+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
diff --git a/po/pot/bookinfo.pot b/po/pot/bookinfo.pot
index e26c2d26b..a6420f8cf 100644
--- a/po/pot/bookinfo.pot
+++ b/po/pot/bookinfo.pot
@@ -6,7 +6,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
-"POT-Creation-Date: 2001-02-09 01:25+0100\n"
+"POT-Creation-Date: 2005-12-03 10:28+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
diff --git a/po/pot/boot-installer.pot b/po/pot/boot-installer.pot
index c2858aee2..a44db59b2 100644
--- a/po/pot/boot-installer.pot
+++ b/po/pot/boot-installer.pot
@@ -6,7 +6,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
-"POT-Creation-Date: 2001-02-09 01:25+0100\n"
+"POT-Creation-Date: 2005-12-03 10:28+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
diff --git a/po/pot/boot-new.pot b/po/pot/boot-new.pot
index 96e820bd4..e3af5957d 100644
--- a/po/pot/boot-new.pot
+++ b/po/pot/boot-new.pot
@@ -6,7 +6,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
-"POT-Creation-Date: 2001-02-09 01:25+0100\n"
+"POT-Creation-Date: 2005-12-03 10:28+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
diff --git a/po/pot/gpl.pot b/po/pot/gpl.pot
index d78b9aaf0..3eba62f53 100644
--- a/po/pot/gpl.pot
+++ b/po/pot/gpl.pot
@@ -6,7 +6,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
-"POT-Creation-Date: 2001-02-09 01:25+0100\n"
+"POT-Creation-Date: 2005-12-03 10:28+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
diff --git a/po/pot/hardware.pot b/po/pot/hardware.pot
index 50bb8d7e3..ee9d1f87c 100644
--- a/po/pot/hardware.pot
+++ b/po/pot/hardware.pot
@@ -6,7 +6,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
-"POT-Creation-Date: 2001-02-09 01:25+0100\n"
+"POT-Creation-Date: 2005-12-03 10:28+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
diff --git a/po/pot/install-methods.pot b/po/pot/install-methods.pot
index 2f92c90f8..2e1c363df 100644
--- a/po/pot/install-methods.pot
+++ b/po/pot/install-methods.pot
@@ -6,7 +6,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
-"POT-Creation-Date: 2001-02-09 01:25+0100\n"
+"POT-Creation-Date: 2005-12-03 10:28+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
diff --git a/po/pot/installation-howto.pot b/po/pot/installation-howto.pot
index d2d1401bd..57ebf8ca0 100644
--- a/po/pot/installation-howto.pot
+++ b/po/pot/installation-howto.pot
@@ -6,7 +6,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
-"POT-Creation-Date: 2001-02-09 01:25+0100\n"
+"POT-Creation-Date: 2005-12-03 10:28+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
diff --git a/po/pot/partitioning.pot b/po/pot/partitioning.pot
index 69e3e097c..25dab80aa 100644
--- a/po/pot/partitioning.pot
+++ b/po/pot/partitioning.pot
@@ -6,7 +6,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
-"POT-Creation-Date: 2001-02-09 01:25+0100\n"
+"POT-Creation-Date: 2005-12-03 10:28+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
diff --git a/po/pot/post-install.pot b/po/pot/post-install.pot
index 75cf108f5..c329e04cb 100644
--- a/po/pot/post-install.pot
+++ b/po/pot/post-install.pot
@@ -6,7 +6,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
-"POT-Creation-Date: 2001-02-09 01:25+0100\n"
+"POT-Creation-Date: 2005-12-03 10:28+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
diff --git a/po/pot/preface.pot b/po/pot/preface.pot
index cf3d63643..c39d8ce3c 100644
--- a/po/pot/preface.pot
+++ b/po/pot/preface.pot
@@ -6,7 +6,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
-"POT-Creation-Date: 2001-02-09 01:25+0100\n"
+"POT-Creation-Date: 2005-12-03 10:28+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
diff --git a/po/pot/preparing.pot b/po/pot/preparing.pot
index b5ab90d6c..92abaf249 100644
--- a/po/pot/preparing.pot
+++ b/po/pot/preparing.pot
@@ -6,7 +6,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
-"POT-Creation-Date: 2001-02-09 01:25+0100\n"
+"POT-Creation-Date: 2005-12-03 10:28+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
diff --git a/po/pot/preseed.pot b/po/pot/preseed.pot
index 35e0dab4b..83dd82f80 100644
--- a/po/pot/preseed.pot
+++ b/po/pot/preseed.pot
@@ -6,7 +6,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
-"POT-Creation-Date: 2001-02-09 01:25+0100\n"
+"POT-Creation-Date: 2005-12-03 10:27+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
diff --git a/po/pot/random-bits.pot b/po/pot/random-bits.pot
index b6c69f084..ea2421416 100644
--- a/po/pot/random-bits.pot
+++ b/po/pot/random-bits.pot
@@ -6,7 +6,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
-"POT-Creation-Date: 2001-02-09 01:25+0100\n"
+"POT-Creation-Date: 2005-12-03 10:28+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
diff --git a/po/pot/using-d-i.pot b/po/pot/using-d-i.pot
index 45b306a9d..b5dd00082 100644
--- a/po/pot/using-d-i.pot
+++ b/po/pot/using-d-i.pot
@@ -6,7 +6,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
-"POT-Creation-Date: 2001-02-09 01:25+0100\n"
+"POT-Creation-Date: 2005-12-03 10:28+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
diff --git a/po/pot/welcome.pot b/po/pot/welcome.pot
index 783a30542..49272871f 100644
--- a/po/pot/welcome.pot
+++ b/po/pot/welcome.pot
@@ -6,7 +6,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
-"POT-Creation-Date: 2001-02-09 01:25+0100\n"
+"POT-Creation-Date: 2005-12-03 10:28+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
diff --git a/scripts/update_pot b/scripts/update_pot
index cc94a4009..c3b1b1095 100755
--- a/scripts/update_pot
+++ b/scripts/update_pot
@@ -29,22 +29,26 @@ RET=0
[ -d $SOURCE ] || exit 1
mkdir -p $PODIR/pot
-# This check is broken!
-if [ -n "$(find $PODIR/pot/ -name *.pot 2>/dev/null)" ] ; then
- echo "Deleting old POT files..."
- rm $PODIR/pot/*.pot
-fi
-
for XML in `find $SOURCEDIR -name "*.xml"` ; do
echo "Creating new POT file for $XML"
POT=$(basename $XML .xml).pot
- xml2pot $XML >$PODIR/pot/$POT
+ # Let's also set a proper POT-Creation-Date
+ xml2pot $XML | \
+ sed "s/^.*POT-Creation-Date:.*$/\"POT-Creation-Date: $(date -u "+%F %R%z")\\\n\"/" \
+ >$PODIR/pot/$POT.new
RC=$?
if [ $RC -ne 0 ] ; then
RET=$RC
echo "Error: error $RC while executing xml2pot"
fi
+
+ # Revert changes if the only thing changed is the POT-Creation-Date
+ if diff $PODIR/pot/$POT $PODIR/pot/$POT.new | grep "^>" | grep -qv "POT-Creation-Date: " ; then
+ mv $PODIR/pot/$POT.new $PODIR/pot/$POT
+ else
+ rm $PODIR/pot/$POT.new
+ fi
done
exit $RET