Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/share/zoneinfo Update tzdata2netbsd for 2014e release.



details:   https://anonhg.NetBSD.org/src/rev/9d2027b5feee
branches:  trunk
changeset: 796677:9d2027b5feee
user:      apb <apb%NetBSD.org@localhost>
date:      Fri Jun 13 19:56:19 2014 +0000

description:
Update tzdata2netbsd for 2014e release.
* Rename work directory so there's a subdir per release.
* Slightly better detection of work that's already been done.

diffstat:

 share/zoneinfo/tzdata2netbsd |  25 ++++++++++++++++++-------
 1 files changed, 18 insertions(+), 7 deletions(-)

diffs (63 lines):

diff -r 8fd56523621e -r 9d2027b5feee share/zoneinfo/tzdata2netbsd
--- a/share/zoneinfo/tzdata2netbsd      Fri Jun 13 19:54:04 2014 +0000
+++ b/share/zoneinfo/tzdata2netbsd      Fri Jun 13 19:56:19 2014 +0000
@@ -1,10 +1,19 @@
-# $NetBSD: tzdata2netbsd,v 1.2 2014/05/18 16:53:56 apb Exp $
-#
+# $NetBSD: tzdata2netbsd,v 1.3 2014/06/13 19:56:19 apb Exp $
+
 # For use by NetBSD developers when updating to new versions of tzdata.
 #
+# 0. Be in an up-to-date checkout of src/share/zoneinfo from NetBSD-current.
+# 1. Edit OLDVER and NEWVER below.
+# 3. Run this script.  You will be prompted for confirmation before
+#    anything major (such as a cvs operation).
+# 4. If something fails, abort the script and fix it.
+# 5. Re-run this script until you are happy.  It's designed to
+#    be re-run over and over, and later runs will try not to
+#    redo non-trivial work done by earlier runs.
+#
 
-OLDVER=2013i
-NEWVER=2014c
+OLDVER=2014c
+NEWVER=2014e
 
 # Uppercase variants of OLDVER and NEWVER
 OLDVER_UC="$( echo "${OLDVER}" | tr '[a-z]' '[A-Z]' )"
@@ -23,8 +32,8 @@
 
 # Directories
 REPODIR="src/share/zoneinfo"   # relative to the NetSBD CVS repository
-WORKDIR="$(pwd)/update-work"
-EXTRACTDIR="${WORKDIR}/extract/${NEWVER}"
+WORKDIR="$(pwd)/update-work/${NEWVER}"
+EXTRACTDIR="${WORKDIR}/extract"
 
 # Files in the work directory
 DISTFILE="${WORKDIR}/${DISTURL##*/}"
@@ -54,7 +63,7 @@
                echo "REALLY DOING IT NOW..."
                "$@"
        else
-               echo "NOT REALLY DOING:" "$@"
+               echo "NOT REALLY DOING THE ABOVE COMMAND"
        fi
 }
 
@@ -134,6 +143,7 @@
 
 extract()
 {
+       [ -f "${EXTRACTDIR}/zone.tab" ] && return
        mkdir -p "${EXTRACTDIR}"
        tar -z -xf "${DISTFILE}" -C "${EXTRACTDIR}"
 }
@@ -143,6 +153,7 @@
 #
 trimnews()
 {
+       [ -s "${NEWSTRIMFILE}" ] && return
        awk -v oldver="${OLDVER}" -v newver="${NEWVER}" \
            '
                BEGIN {inrange = 0}



Home | Main Index | Thread Index | Old Index