summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormstsirkin <mstsirkin@0c8fb4dd-22a2-4bb5-bc14-6c75a5f43652>2014-06-27 16:27:31 +0000
committermstsirkin <mstsirkin@0c8fb4dd-22a2-4bb5-bc14-6c75a5f43652>2014-06-27 16:27:31 +0000
commit3766328a09ef9085ce209f63bc142639f868ce71 (patch)
treecceab4a8c071bd70adef43c71a1f6f009618e9b1
parente318ba3419a06b4da124ced908834f80c6ee137b (diff)
setup: allow overriding date from environment
git-svn-id: https://tools.oasis-open.org/version-control/svn/virtio@405 0c8fb4dd-22a2-4bb5-bc14-6c75a5f43652
-rwxr-xr-xmake-setup-generated.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/make-setup-generated.sh b/make-setup-generated.sh
index 2525702..02c58b5 100755
--- a/make-setup-generated.sh
+++ b/make-setup-generated.sh
@@ -1,7 +1,7 @@
#! /bin/sh
VERSION=1.0
-DATESTR=`cat REVISION-DATE 2>/dev/null`
+DATESTR=${DATESTR:-`cat REVISION-DATE 2>/dev/null`}
if [ x"$DATESTR" = x ]; then
ISODATE=`git show --format=format:'%cd' --date=iso | head -n 1`
DATESTR=`date -d "$DATE" +'%d %B %Y'`