summaryrefslogtreecommitdiff
path: root/Makefile.pre.in
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-01-05 06:38:15 +0000
committerNeal Norwitz <nnorwitz@gmail.com>2006-01-05 06:38:15 +0000
commitf2d66fe1ec51ac618068f7f035eab7f4053aaef1 (patch)
tree7c01aceff245a23965ab0be7356d6b577c699eb5 /Makefile.pre.in
parenteeab7da5914f67a54223e17d370318c5cb6b83ba (diff)
downloadcpython-git-f2d66fe1ec51ac618068f7f035eab7f4053aaef1.tar.gz
Try to make svnversion test more portable, based on Sjoerd's suggestion
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 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; \