Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/distrib/sets Obey MKREPRO_TIMESTAMP when creating sets (crea...
details: https://anonhg.NetBSD.org/src/rev/5c2b85d6f2d5
branches: trunk
changeset: 342390:5c2b85d6f2d5
user: christos <christos%NetBSD.org@localhost>
date: Sat Dec 19 22:29:23 2015 +0000
description:
Obey MKREPRO_TIMESTAMP when creating sets (create all the files in the
sets with that date).
diffstat:
distrib/sets/Makefile | 5 ++++-
distrib/sets/maketars | 11 ++++++++---
2 files changed, 12 insertions(+), 4 deletions(-)
diffs (74 lines):
diff -r 9d2d66cdb537 -r 5c2b85d6f2d5 distrib/sets/Makefile
--- a/distrib/sets/Makefile Sat Dec 19 21:43:36 2015 +0000
+++ b/distrib/sets/Makefile Sat Dec 19 22:29:23 2015 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.99 2015/11/26 15:41:58 joerg Exp $
+# $NetBSD: Makefile,v 1.100 2015/12/19 22:29:23 christos Exp $
# Experimental RCS METALOG versioning
# (Needs host's rcs(1) commands)
@@ -40,6 +40,9 @@
${HOST_SH}
MAKETARS_FLAGS=
+.if ${MKREPRO_TIMESTAMP:Uno} != "no"
+MAKETARS_FLAGS+= -T "${MKREPRO_TIMESTAMP}"
+.endif
.if ${MKX11} != "no"
MAKESRCTARS_X11_FLAGS= -x ${X11SRCDIR}
.endif
diff -r 9d2d66cdb537 -r 5c2b85d6f2d5 distrib/sets/maketars
--- a/distrib/sets/maketars Sat Dec 19 21:43:36 2015 +0000
+++ b/distrib/sets/maketars Sat Dec 19 22:29:23 2015 +0000
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: maketars,v 1.84 2015/05/27 15:18:29 martin Exp $
+# $NetBSD: maketars,v 1.85 2015/12/19 22:29:23 christos Exp $
#
# Make release tar files for some or all lists. Usage:
# maketars [-b] [-x] [-i installdir] [-a arch] [-m machine] [-s setsdir]
@@ -28,6 +28,7 @@
installdir=
etcdir=
setlistdir=
+timestamp=
setfilesonly=false
quiet=false
skipkeys=time,md5,sha1,sha384,sha512,rmd160,cksum
@@ -57,6 +58,7 @@
-U do not preserve file permissions (with -i ..)
-d dest \${DESTDIR} [${dest}]
-t targetdir \${RELEASEDIR} [${tars}]
+ -T timestamp Timestamp to set for all the files in the tar.
[setname ...] Sets to build [${lists}]
USAGE
exit 1
@@ -68,7 +70,7 @@
}
# handle args
-while getopts L:bxyi:a:m:qs:F:SM:N:Ud:t: ch; do
+while getopts L:bxyi:a:m:qs:F:SM:N:Ud:t:T: ch; do
case ${ch} in
L)
save_IFS="${IFS}"
@@ -129,6 +131,9 @@
t)
tars="${OPTARG}"
;;
+ T)
+ timestamp="--timestamp $OPTARG"
+ ;;
*)
usage
;;
@@ -208,7 +213,7 @@
local s="$1"
shift
(cd "${dest}" &&
- ${PAX} -dOw -N"${etcdir}" -M "$@" < "${setlistdir}/set.${s}")
+ ${PAX} -dOw ${timestamp} -N"${etcdir}" -M "$@" < "${setlistdir}/set.${s}")
}
#
Home |
Main Index |
Thread Index |
Old Index