aboutsummaryrefslogtreecommitdiff
path: root/Makefile.build
diff options
context:
space:
mode:
authorherbelin2009-01-10 22:37:15 +0000
committerherbelin2009-01-10 22:37:15 +0000
commitdb6363f65f8c68ccadd39effe76a5142c8ee1acd (patch)
tree4f7967725385a884fb51b17c1833e655e5180d30 /Makefile.build
parentee2110587e91f288bcae62e9f837f99079dfaf2a (diff)
- Fixed the recompilation of config/revision.ml once every two conmpilations.
- Fixed an error message in configure - Support for filenames with spaces in coqmktop git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@11772 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'Makefile.build')
-rw-r--r--Makefile.build27
1 files changed, 13 insertions, 14 deletions
diff --git a/Makefile.build b/Makefile.build
index 214095b5f5..908b610623 100644
--- a/Makefile.build
+++ b/Makefile.build
@@ -815,21 +815,20 @@ ifeq ($(CHECKEDOUT),git)
fi
endif
$(HIDE)set -e; \
- if test -e revision.new; then \
- if test -e revision; then \
- if test "`cat config/revision.ml`" = "`cat revision.new`" ; then \
- rm -f revision.new; \
- else \
- mv -f revision.new config/revision.ml; \
- fi; \
- else \
- mv -f revision.new config/revision.ml; \
- fi; \
- else \
- echo 'let version = Coq_config.version' > config/revision.ml; \
- echo 'let revision = Coq_config.date' >> config/revision.ml; \
+ if test ! -e revision.new; then \
+ echo 'let version = Coq_config.version' > revision.new; \
+ echo 'let revision = Coq_config.date' >> revision.new; \
fi; \
- echo 'let date = "$(shell date +"%h %d %Y %H:%M:%S")"' >> config/revision.ml
+ echo 'let date = "$(shell date +"%h %d %Y %H:%M:%S")"' >> revision.new ; \
+ if test -e config/revision.ml; then \
+ if test "`head -2 config/revision.ml`" = "`head -2 revision.new`" ; then \
+ rm -f revision.new; \
+ else \
+ mv -f revision.new config/revision.ml; \
+ fi; \
+ else \
+ mv -f revision.new config/revision.ml; \
+ fi
###########################################################################
# Default rules