]> granicus.if.org Git - python/commitdiff
SF bug #1395926: Also test for svnversion command on $PATH before using it to
authorBarry Warsaw <barry@python.org>
Tue, 3 Jan 2006 14:30:55 +0000 (14:30 +0000)
committerBarry Warsaw <barry@python.org>
Tue, 3 Jan 2006 14:30:55 +0000 (14:30 +0000)
calculate the build number.

Makefile.pre.in

index 259cd8707a6fa51270493a287097c7a3e94731f4..079e92919cae13d624d6b5f596ab0f63aeea02e6 100644 (file)
@@ -349,7 +349,7 @@ buildno: $(PARSER_OBJS) \
                $(SIGNAL_OBJS) \
                $(MODOBJS) \
                $(srcdir)/Modules/getbuildinfo.c
-       if test -d $(srcdir)/.svn; then \
+       if test -d $(srcdir)/.svn -a ! -z "`type -t svnversion`" ; then \
                svnversion $(srcdir) >buildno; \
        elif test -f buildno; then \
                expr `cat buildno` + 1 >buildno1; \