From: Michael Smith Date: Mon, 4 Apr 2005 12:21:48 +0000 (+0000) Subject: refine logic for determing RELVER X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8d84585e4477e08eb3dd66888a0197b3182c73ca;p=docbook-dsssl refine logic for determing RELVER --- diff --git a/cvstools/Makefile.incl b/cvstools/Makefile.incl index a45f422a0..4e3561bf8 100644 --- a/cvstools/Makefile.incl +++ b/cvstools/Makefile.incl @@ -44,11 +44,13 @@ BROWSER_OPTS=-dump # file is an XSL stylesheet or not, and then grabbing the version # number from that file RELVER := $(shell \ - if grep "/dev/null; then \ - grep "Version>.\+<" VERSION \ - | sed 's/^[^<]*\(.\+\)<\/fm:Version>$$/\1/' \ - | tr -d "\n"; \ - else cat VERSION; \ + if [ -f VERSION ]; then \ + if grep "/dev/null; then \ + grep "Version>.\+<" VERSION \ + | sed 's/^[^<]*\(.\+\)<\/fm:Version>$$/\1/' \ + | tr -d "\n"; \ + else cat VERSION; \ + fi \ fi \ )