From 6bfd8de9e623f7eb48d52ddf48d8809f639f239b Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Tue, 3 Jan 2006 14:30:55 +0000 Subject: SF bug #1395926: Also test for svnversion command on $PATH before using it to calculate the build number. --- Makefile.pre.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.pre.in b/Makefile.pre.in index 259cd87..079e929 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; 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; \ -- cgit v0.12