소스 검색

r13137@catbus: nickm | 2007-06-01 13:49:34 -0400
Ah. Of course. You spell "is there an svn" as 'test -x "`which svn 2>&1`"'. Perfectly reasonable. Don't know why I didn't think of it in the first place.


svn:r10440

Nick Mathewson 18 년 전
부모
커밋
6df38f52db
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/or/Makefile.am

+ 2 - 2
src/or/Makefile.am

@@ -39,11 +39,11 @@ noinst_HEADERS = or.h eventdns.h eventdns_tor.h micro-revision.i
 tor_main.o: micro-revision.i
 
 micro-revision.i: FORCE
-	@if test -d ../../.svn && test x`which svn` != x ; then	\
+	@if test -d ../../.svn && test -x "`which svn 2>&1`" ; then	\
 	  svn info ../.. |              			\
 	  sed -n 's/^Revision: \([0-9][0-9]*\).*/"\1"/p' > micro-revision.tmp \
 	     || true;                                           \
-	elif test x`which svk` != x && test -d ~/.svk/local; then \
+	elif test -x "`which svk 2>&1`" && test -d ~/.svk/local; then \
           location=../..;                                       \
           rev=x;                                                \
           while test x$$rev = xx; do                            \