Browse Source

r12634@catbus: nickm | 2007-05-02 15:13:13 -0400
Shell tweaks suggested by weasel.


svn:r10094

Nick Mathewson 17 years ago
parent
commit
da758f4a18
1 changed files with 3 additions and 4 deletions
  1. 3 4
      src/or/Makefile.am

+ 3 - 4
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