r13139@catbus: nickm | 2007-06-01 14:02:40 -0400

Add some ;trues, and tabify.


svn:r10441
This commit is contained in:
Nick Mathewson 2007-06-01 18:02:41 +00:00
parent 6df38f52db
commit 7c3f418e39

View File

@ -39,41 +39,41 @@ noinst_HEADERS = or.h eventdns.h eventdns_tor.h micro-revision.i
tor_main.o: micro-revision.i tor_main.o: micro-revision.i
micro-revision.i: FORCE micro-revision.i: FORCE
@if test -d ../../.svn && test -x "`which svn 2>&1`" ; then \ @if test -d ../../.svn && test -x "`which svn 2>&1;true`" ; then \
svn info ../.. | \ svn info ../.. | \
sed -n 's/^Revision: \([0-9][0-9]*\).*/"\1"/p' > micro-revision.tmp \ sed -n 's/^Revision: \([0-9][0-9]*\).*/"\1"/p' > micro-revision.tmp \
|| true; \ || true; \
elif test -x "`which svk 2>&1`" && test -d ~/.svk/local; then \ elif test -x "`which svk 2>&1;true`" && test -d ~/.svk/local; then \
location=../..; \ location=../..; \
rev=x; \ rev=x; \
while test x$$rev = xx; do \ while test x$$rev = xx; do \
x=`svk info $$location | \ x=`svk info $$location | \
sed -n 's/^Mirrored From:.*, Rev\. \([0-9][0-9]*\)/\1/p'`; \ sed -n 's/^Mirrored From:.*, Rev\. \([0-9][0-9]*\)/\1/p'`; \
if test x$$x != x; then \ if test x$$x != x; then \
rev=$$x; \ rev=$$x; \
break; \ break; \
else \ else \
loc=`svk info $$location | \ loc=`svk info $$location | \
sed -n 's/^Copied From: \(.*\), Rev\. [0-9][0-9]*/\1/p'`; \ sed -n 's/^Copied From: \(.*\), Rev\. [0-9][0-9]*/\1/p'`; \
if test x$$loc = x; then \ if test x$$loc = x; then \
break; \ break; \
else \ else \
location=/$$loc; \ location=/$$loc; \
fi; \ fi; \
fi; \ fi; \
done; \ done; \
if test x$$rev != x; then \ if test x$$rev != x; then \
echo \"$$rev\" > micro-revision.tmp; \ echo \"$$rev\" > micro-revision.tmp; \
fi; \ fi; \
fi; \ fi; \
if test ! -f micro-revision.tmp ; then \ if test ! -f micro-revision.tmp ; then \
if test ! -f micro-revision.i ; then \ if test ! -f micro-revision.i ; then \
echo '""' > micro-revision.i; \ echo '""' > micro-revision.i; \
fi; \ fi; \
elif test ! -f micro-revision.i || \ elif test ! -f micro-revision.i || \
test x"`cat micro-revision.tmp`" != x"`cat micro-revision.i`"; then \ test x"`cat micro-revision.tmp`" != x"`cat micro-revision.i`"; then \
mv micro-revision.tmp micro-revision.i; \ mv micro-revision.tmp micro-revision.i; \
fi fi; true
#Dummy target to ensure that micro-revision.i _always_ gets built. #Dummy target to ensure that micro-revision.i _always_ gets built.
FORCE: FORCE: