diff options
author | Frans Pop <elendil@planet.nl> | 2005-12-03 10:34:24 +0000 |
---|---|---|
committer | Frans Pop <elendil@planet.nl> | 2005-12-03 10:34:24 +0000 |
commit | a8c825ebca4a3ac27c962121eeb5ba75091c2c7f (patch) | |
tree | a66851da30f0e26e992e5ad0013ef1a1afd053fc | |
parent | 25a4665934e17e0afbb70fba2513c673dbd05d49 (diff) | |
download | installation-guide-a8c825ebca4a3ac27c962121eeb5ba75091c2c7f.zip |
Set proper POT-Creation-Date
-rw-r--r-- | debian/changelog | 3 | ||||
-rw-r--r-- | po/pot/administrivia.pot | 2 | ||||
-rw-r--r-- | po/pot/bookinfo.pot | 2 | ||||
-rw-r--r-- | po/pot/boot-installer.pot | 2 | ||||
-rw-r--r-- | po/pot/boot-new.pot | 2 | ||||
-rw-r--r-- | po/pot/gpl.pot | 2 | ||||
-rw-r--r-- | po/pot/hardware.pot | 2 | ||||
-rw-r--r-- | po/pot/install-methods.pot | 2 | ||||
-rw-r--r-- | po/pot/installation-howto.pot | 2 | ||||
-rw-r--r-- | po/pot/partitioning.pot | 2 | ||||
-rw-r--r-- | po/pot/post-install.pot | 2 | ||||
-rw-r--r-- | po/pot/preface.pot | 2 | ||||
-rw-r--r-- | po/pot/preparing.pot | 2 | ||||
-rw-r--r-- | po/pot/preseed.pot | 2 | ||||
-rw-r--r-- | po/pot/random-bits.pot | 2 | ||||
-rw-r--r-- | po/pot/using-d-i.pot | 2 | ||||
-rw-r--r-- | po/pot/welcome.pot | 2 | ||||
-rwxr-xr-x | scripts/update_pot | 18 |
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 |