summaryrefslogtreecommitdiffstats
path: root/Makefile.pre.in
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2006-01-03 14:30:55 (GMT)
committerBarry Warsaw <barry@python.org>2006-01-03 14:30:55 (GMT)
commit6bfd8de9e623f7eb48d52ddf48d8809f639f239b (patch)
treeb1d38ee2e115002683ccbb59150a734db3b80464 /Makefile.pre.in
parent64c33ddab164740cee21559826fb4b062d2eb18c (diff)
downloadcpython-6bfd8de9e623f7eb48d52ddf48d8809f639f239b.zip
cpython-6bfd8de9e623f7eb48d52ddf48d8809f639f239b.tar.gz
cpython-6bfd8de9e623f7eb48d52ddf48d8809f639f239b.tar.bz2
SF bug #1395926: Also test for svnversion command on $PATH before using it to
calculate the build number.
Diffstat (limited to 'Makefile.pre.in')
-rw-r--r--Makefile.pre.in2
1 files changed, 1 insertions, 1 deletions
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; \