]> granicus.if.org Git - docbook-dsssl/commitdiff
Made definition of some variables dependent on whether the
authorMichael Smith <xmldoc@users.sourceforge.net>
Thu, 23 Aug 2007 09:48:18 +0000 (09:48 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Thu, 23 Aug 2007 09:48:18 +0000 (09:48 +0000)
.svninfo.xml actually exists yet (because the values for those
variables are read from that file).

releasetools/Variables.mk

index e9ce1ce89bec7c1043f1ab52fc571552b5331e7c..e24a7d94418d05512030b8506168660d70dd5d8c 100644 (file)
@@ -71,9 +71,9 @@ SVN_INFO_FILE=.svninfo.xml
 
 PREVIOUS_RELEASE=$(shell $(XSLTPROC) --stringparam get PreviousRelease VERSION VERSION)
 
-REPOSITORY_ROOT=$(shell $(XSLTPROC) --stringparam expression //root $(EVALXPATH) $(SVN_INFO_FILE))
-DISTRO_URL=$(shell $(XSLTPROC) --stringparam expression //url $(EVALXPATH) $(SVN_INFO_FILE))
-REVISION=$(shell $(XSLTPROC) --stringparam expression //commit/@revision $(EVALXPATH) $(SVN_INFO_FILE))
+REPOSITORY_ROOT=$(shell if [ -f $(SVN_INFO_FILE) ]; then $(XSLTPROC) --stringparam expression //root $(EVALXPATH) $(SVN_INFO_FILE); fi)
+DISTRO_URL=$(shell if [ -f $(SVN_INFO_FILE) ]; then $(XSLTPROC) --stringparam expression //url $(EVALXPATH) $(SVN_INFO_FILE); fi)
+REVISION=$(shell if [ -f $(SVN_INFO_FILE) ]; then $(XSLTPROC) --stringparam expression //commit/@revision $(EVALXPATH) $(SVN_INFO_FILE); fi)
 DISTRO_PARENT_URL=$(dir $(basename $(DISTRO_URL)))
 
 # stylesheet for stripping DB5 namespace