From 7418a9a37fe0bfc06bd601f251f74abb01e929b1 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Wed, 17 Nov 2004 18:27:04 +0000 Subject: [PATCH] mkunxarc.sh was still including (mostly empty) .svn directories, and that in turn was confusing the new doc/Makefile mechanism. Fixed the former, and also put an additional safeguard in the latter in a belt-and-braces sort of fashion. [originally from svn r4806] --- doc/Makefile | 2 ++ mkunxarc.sh | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/doc/Makefile b/doc/Makefile index eb472d98..c60a6d07 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -17,10 +17,12 @@ SVNVERSION=$(shell test -d .svn && svnversion .) BADCHARS=$(findstring :,$(SVNVERSION))$(findstring S,$(SVNVERSION)) ifeq ($(BADCHARS),) ifneq ($(SVNVERSION),) +ifneq ($(SVNVERSION),exported) VERSION=Built from revision $(patsubst M,,$(SVNVERSION)) endif endif endif +endif # ... and now, we condition our build behaviour on whether or not # VERSION _is_ defined. ifdef VERSION diff --git a/mkunxarc.sh b/mkunxarc.sh index bde24405..3fcbe107 100755 --- a/mkunxarc.sh +++ b/mkunxarc.sh @@ -30,7 +30,10 @@ relver=`cat LATEST.VER` arcname="putty$arcsuffix" mkdir uxarc mkdir uxarc/$arcname -find . -name uxarc -prune -o -name . -o \ +find . -name uxarc -prune -o \ + -name CVS -prune -o \ + -name .svn -prune -o \ + -name . -o \ -type d -exec mkdir uxarc/$arcname/{} \; find . -name uxarc -prune -o \ -name CVS -prune -o \