summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-10-26 07:05:12 -0400
committerEric S. Raymond <esr@thyrsus.com>2011-10-26 07:05:12 -0400
commitd490f9d7c26a03f172987d68cb02ddedb93d2dcc (patch)
treed81f4ed8246ac25882f83cc30bc8c3e4ada64910 /SConstruct
parentdacc9d45c93eece50f09b2b76c1b3dcf72cb5f85 (diff)
downloadgpsd-d490f9d7c26a03f172987d68cb02ddedb93d2dcc.tar.gz
Exit on missing chrpath. And more release refactoring.
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct22
1 files changed, 18 insertions, 4 deletions
diff --git a/SConstruct b/SConstruct
index d7cee520..9a113da5 100644
--- a/SConstruct
+++ b/SConstruct
@@ -462,6 +462,7 @@ if config.CheckExecutable('$CHRPATH -v', 'chrpath'):
env.Prepend(RPATH=[os.path.realpath(os.curdir)])
else:
print "The chrpath utility is required for GPSD to build."
+ quit()
# Map options to libraries required to support them that might be absent.
optionrequires = {
@@ -1527,12 +1528,25 @@ if os.path.exists("gpsd.c") and os.path.exists(".gitignore"):
# How to tag a release
tag_release = Utility('tag-release', [], [
- 'git tag -s -m "Tagged for external release ${VERSION}" release-${VERSION}',
- 'git push --tags'
+ 'git tag -s -m "Tagged for external release ${VERSION}" release-${VERSION}'
])
- # All a buildup to this
- env.Alias("release", [dist, upload_release, tag_release, upload_web])
+ # Release preparation. Note that tag_release has to fire early,
+ # otherwise the value of REVISION in revision.h won't be right.
+ # This production will require Internet access.
+ # Run it after removing revision.h.
+ releaseprep = env.Alias("releaseprep",
+ [leapseconds_cache,
+ tag_release,
+ tarball])
+ Utility("undoprep", [], ['rm -f gpsd-${VERSION}.tar.gz;',
+ 'git tag -d release-${VERSION};'])
+
+ # All a buildup to this.
+ env.Alias("release", [releaseprep,
+ upload_release,
+ 'git push --tags',
+ upload_web])
# The following sets edit modes for GNU EMACS
# Local Variables: