summaryrefslogtreecommitdiff
path: root/src/or/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'src/or/Makefile.am')
-rw-r--r--src/or/Makefile.am9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/or/Makefile.am b/src/or/Makefile.am
index b5cffb443e..744ea35b67 100644
--- a/src/or/Makefile.am
+++ b/src/or/Makefile.am
@@ -66,10 +66,11 @@ micro-revision.i: FORCE
echo \"$$rev\" > micro-revision.tmp; \
fi; \
fi; \
- if test ! -f micro-revision.tmp; then \
- echo '""' > micro-revision.tmp; \
- fi; \
- if test ! -f micro-revision.i || \
+ if test ! -f micro-revision.tmp ; then \
+ if test ! -f micro-revision.i ; then \
+ echo '""' > micro-revision.i; \
+ fi; \
+ elif test ! -f micro-revision.i || \
test "`cat micro-revision.tmp`" != "`cat micro-revision.i`"; then \
mv micro-revision.tmp micro-revision.i; \
fi