diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-05-07 17:11:53 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-05-07 17:11:53 +0000 |
commit | 89753e2163b68e15f9ad64c62446e01c3aa15334 (patch) | |
tree | ddc8bec0dfd4dccc81fa52f4e453e615ebd3652f /src | |
parent | 95ead29574ec1d89384f8a1be504c7577eab16de (diff) | |
download | tor-89753e2163b68e15f9ad64c62446e01c3aa15334.tar.gz tor-89753e2163b68e15f9ad64c62446e01c3aa15334.zip |
r12676@catbus: nickm | 2007-05-07 13:11:38 -0400
When we cannot find a micro-revision number, do not overwrite an already-present micro-revision.i.
svn:r10134
Diffstat (limited to 'src')
-rw-r--r-- | src/or/Makefile.am | 9 |
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 |