[libdatetime-timezone-perl] 02/03: Update debian/tools/update-tzdata.sh helper script.
gregor herrmann
gregoa at debian.org
Fri Nov 4 14:50:00 UTC 2016
This is an automated email from the git hooks/post-receive script.
gregoa pushed a commit to branch jessie
in repository libdatetime-timezone-perl.
commit 548ee0a24fbcf95f1c107a44cb03ad56885fed7e
Author: gregor herrmann <gregoa at debian.org>
Date: Fri Nov 4 15:26:38 2016 +0100
Update debian/tools/update-tzdata.sh helper script.
Update handling of -Inf/Inf.
(This script is only used manually for updating Olson database data.)
---
debian/tools/update-tzdata.sh | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/debian/tools/update-tzdata.sh b/debian/tools/update-tzdata.sh
index 80032cf..519b017 100644
--- a/debian/tools/update-tzdata.sh
+++ b/debian/tools/update-tzdata.sh
@@ -51,9 +51,10 @@ popd
perl tools/parse_olson --dir debian/tzdata --version $updbversion --clean
-# add VERSION to files
+# add VERSION to files; fix Inf
for f in $(find lib/DateTime -name "*.pm"); do
grep -q "::VERSION = '$dttzversion';" $f && continue
module=$(echo $f | perl -pe 's{lib/DateTime/TimeZone/(.+)(?:(/.+))?.pm}{DateTime/TimeZone/$1$2}; s{/}{::}g;')
perl -pi -e "s{package $module;\s+}{$&\\\$${module}::VERSION = '$dttzversion';}m" $f
+ perl -pi -e 's|-Inf|DateTime::TimeZone::NEG_INFINITY|g;s|Inf|DateTime::TimeZone::INFINITY|g' $f
done
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libdatetime-timezone-perl.git
More information about the Pkg-perl-cvs-commits
mailing list