From: Neal Norwitz Date: Thu, 5 Jan 2006 06:38:15 +0000 (+0000) Subject: Try to make svnversion test more portable, based on Sjoerd's suggestion X-Git-Tag: v2.5a0~896 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f2d66fe1ec51ac618068f7f035eab7f4053aaef1;p=python Try to make svnversion test more portable, based on Sjoerd's suggestion --- diff --git a/Makefile.pre.in b/Makefile.pre.in index 079e92919c..507399bfe5 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -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; \