Skip to content
Snippets Groups Projects
Commit 17670c57 authored by ccooper's avatar ccooper
Browse files

- re-add cvs datestamp functionality (enabled by default), but allow it to be...

- re-add cvs datestamp functionality (enabled by default), but allow it to be overridden by using the --disable-datestamp flag
parent 3dcf2fc4
No related branches found
No related tags found
No related merge requests found
...@@ -29,6 +29,7 @@ UP_ARCHS= ...@@ -29,6 +29,7 @@ UP_ARCHS=
DATE=$(date) DATE=$(date)
USE_DATESTAMP=1
RPMBUILD= RPMBUILD=
cleanup() cleanup()
...@@ -113,6 +114,11 @@ Usage: ${0##*/} [OPTION]... [-- <lustre configure options>] ...@@ -113,6 +114,11 @@ Usage: ${0##*/} [OPTION]... [-- <lustre configure options>]
Also note that by using a non-"base" arch (eg, i386) only kernels Also note that by using a non-"base" arch (eg, i386) only kernels
will be built - there will be no lustre-lite-utils package. will be built - there will be no lustre-lite-utils package.
--disable-datestamp
Prevents the datestamp flag (-D) from being passed to cvs for
checkouts. This is a workaround for a problem encountered when
using lbuild with tinderbox.
EOF EOF
# list_targets # list_targets
...@@ -244,7 +250,13 @@ unpack_lustre() ...@@ -244,7 +250,13 @@ unpack_lustre()
untar "$LUSTRE" untar "$LUSTRE"
[ -d lustre ] || ln -sf lustre* lustre [ -d lustre ] || ln -sf lustre* lustre
else else
cvs -d "$CVSROOT" -qz3 co -r "$TAG" -d "$DIRNAME" lustre || \ if [ "$USE_DATESTAMP" ]; then
DATESTAMP="-D '$DATE'"
else
DATESTAMP=""
fi
cvs -d "$CVSROOT" -qz3 co $DATESTAMP -r "$TAG" -d "$DIRNAME" lustre || \
fatal 1 "There was an error checking out Lustre from CVS." fatal 1 "There was an error checking out Lustre from CVS."
echo "Creating lustre tarball..." echo "Creating lustre tarball..."
tar zcf "$DIRNAME.tar.gz" "$DIRNAME" \ tar zcf "$DIRNAME.tar.gz" "$DIRNAME" \
...@@ -364,7 +376,7 @@ publish() ...@@ -364,7 +376,7 @@ publish()
[ -r ~/.lbuildrc ] && . ~/.lbuildrc [ -r ~/.lbuildrc ] && . ~/.lbuildrc
options=$(getopt -o d:D:h -l extraversion:,kerneldir:,lustre:,nosrc,publish,release,tag:,target:,target-archs: -- "$@") options=$(getopt -o d:D:h -l extraversion:,kerneldir:,lustre:,nosrc,publish,release,tag:,target:,target-archs:,disable-datestamp -- "$@")
eval set -- "$options" eval set -- "$options"
...@@ -420,6 +432,10 @@ while [ "$1" ] ; do ...@@ -420,6 +432,10 @@ while [ "$1" ] ; do
TARGET_ARCHS=$2 TARGET_ARCHS=$2
shift 2 shift 2
;; ;;
--disable-datestamp)
USE_DATESTAMP=
shift
;;
--) --)
shift shift
CONFIGURE_FLAGS=$@ CONFIGURE_FLAGS=$@
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment