From: Nick Mathewson Date: Wed, 2 May 2007 19:13:15 +0000 (+0000) Subject: r12634@catbus: nickm | 2007-05-02 15:13:13 -0400 X-Git-Tag: tor-0.2.0.1-alpha~185 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=da758f4a1854174ca8cb95be7e7e2abd8bd5cd3b;p=thirdparty%2Ftor.git r12634@catbus: nickm | 2007-05-02 15:13:13 -0400 Shell tweaks suggested by weasel. svn:r10094 --- diff --git a/src/or/Makefile.am b/src/or/Makefile.am index 00939cf131..b5cffb443e 100644 --- a/src/or/Makefile.am +++ b/src/or/Makefile.am @@ -43,8 +43,7 @@ micro-revision.i: FORCE svn info ../.. | \ sed -n 's/^Revision: \([0-9][0-9]*\).*/"\1"/p' > micro-revision.tmp \ || true; \ - else \ - if test x`which svk` != x -a -d ~/.svk; then \ + elif test x`which svk` != x && test -d ~/.svk; then \ location=../..; \ rev=x; \ while test x$$rev = xx; do \ @@ -67,11 +66,11 @@ micro-revision.i: FORCE echo \"$$rev\" > micro-revision.tmp; \ fi; \ fi; \ - fi; \ if test ! -f micro-revision.tmp; then \ echo '""' > micro-revision.tmp; \ fi; \ - if test "`cat micro-revision.tmp`" != "`cat micro-revision.i`"; then \ + if test ! -f micro-revision.i || \ + test "`cat micro-revision.tmp`" != "`cat micro-revision.i`"; then \ mv micro-revision.tmp micro-revision.i; \ fi