Try to make svnversion test more portable, based on Sjoerd's suggestion

This commit is contained in:
Neal Norwitz 2006-01-05 06:38:15 +00:00
parent eeab7da591
commit f2d66fe1ec
1 changed files with 1 additions and 1 deletions

View File

@ -349,7 +349,7 @@ buildno: $(PARSER_OBJS) \
$(SIGNAL_OBJS) \
$(MODOBJS) \
$(srcdir)/Modules/getbuildinfo.c
if test -d $(srcdir)/.svn -a ! -z "`type -t svnversion`" ; then \
if test -d $(srcdir)/.svn -a "`which svnversion 2> /dev/null`"; then \
svnversion $(srcdir) >buildno; \
elif test -f buildno; then \
expr `cat buildno` + 1 >buildno1; \