summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-10-26 08:07:52 -0400
committerEric S. Raymond <esr@thyrsus.com>2011-10-26 08:07:52 -0400
commit77ee0de5b1545cbafd4bc18616183807237dcf13 (patch)
tree2d192b8ff326a37b8c5b800d7f49e87c27402e9b /SConstruct
parent5e778dfe4084795b089d5d5e984d32eea86b3e03 (diff)
downloadgpsd-77ee0de5b1545cbafd4bc18616183807237dcf13.tar.gz
Finally I think we can get rid of the expliccit "rm -f revision.h".
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct11
1 files changed, 6 insertions, 5 deletions
diff --git a/SConstruct b/SConstruct
index eb2bb9d7..0236db1d 100644
--- a/SConstruct
+++ b/SConstruct
@@ -1531,13 +1531,14 @@ if os.path.exists("gpsd.c") and os.path.exists(".gitignore"):
'git tag -s -m "Tagged for external release ${VERSION}" release-${VERSION}'
])
- # Local release preparation. Run it after removing revision.h.
- # This production will require Internet access.
+ # Local release preparation. This production will require Internet access,
+ # but it doesn't do any uploads or public repo mods.
#
- # Note that tag_release has to fire early, otherwise the value of
- # REVISION in revision.h won't be right.
+ # Note that tag_release has to fire early, otherwise the value of REVISION
+ # won't be right when revision.h is generated for the tarball.
releaseprep = env.Alias("releaseprep",
- [leapseconds_cache,
+ [Utility("distclean", [], ["rm -f revision.h"]),
+ leapseconds_cache,
tag_release,
tarball])
# Undo local release preparation