]> granicus.if.org Git - python/commitdiff
Try to make svnversion test more portable, based on Sjoerd's suggestion
authorNeal Norwitz <nnorwitz@gmail.com>
Thu, 5 Jan 2006 06:38:15 +0000 (06:38 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Thu, 5 Jan 2006 06:38:15 +0000 (06:38 +0000)
Makefile.pre.in

index 079e92919cae13d624d6b5f596ab0f63aeea02e6..507399bfe54aca929e3b7cdfb5d50784d56b3cc1 100644 (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; \