[Glibc-bsd-commits] r4950 - trunk/kfreebsd-9/debian/patches
Steven Chamberlain
stevenc-guest at alioth.debian.org
Fri Sep 20 21:05:28 UTC 2013
Author: stevenc-guest
Date: 2013-09-20 21:05:27 +0000 (Fri, 20 Sep 2013)
New Revision: 4950
Modified:
trunk/kfreebsd-9/debian/patches/923_newvers_timestamp.diff
Log:
Parse date from changelog the easy way
Modified: trunk/kfreebsd-9/debian/patches/923_newvers_timestamp.diff
===================================================================
--- trunk/kfreebsd-9/debian/patches/923_newvers_timestamp.diff 2013-09-20 19:16:25 UTC (rev 4949)
+++ trunk/kfreebsd-9/debian/patches/923_newvers_timestamp.diff 2013-09-20 21:05:27 UTC (rev 4950)
@@ -16,7 +16,7 @@
+if [ -f "${SYSDIR}/../../debian/changelog" ] ; then
+ # Use timestamp from the most recent debian/changelog entry,
+ # instead of the exact time of the build.
-+ t=`grep -a '^ --' "${SYSDIR}/../../debian/changelog" | head -n 1 | sed 's/^.*\s\s\(...,.\+\)$/\1/'`
++ t=`dpkg-parsechangelog -f"${SYSDIR}/../../debian/changelog" -S"Date"`
+fi
+
for dir in /bin /usr/bin /usr/local/bin; do
More information about the Glibc-bsd-commits
mailing list