branch: externals/idlwave
commit 26db2a7ad38c20f7eb27d872e52485fb8a735d2f
Author: jdsmith <jdsmith>
Commit: jdsmith <jdsmith>

    - Silence errors relating to missing help package or xemacs distrib.
---
 Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index b99a49f0a2..7d13929cc6 100644
--- a/Makefile
+++ b/Makefile
@@ -123,13 +123,13 @@ install-info:
 
 
 # HELP 
-HELPFILEMAYBE := $(shell ls -1 idlwave-*help.tar.* | head -1)
+HELPFILEMAYBE := $(shell ls -1 idlwave-*help.tar.* 2>/dev/null | head -1 )
 ifdef HELPFILEMAYBE
 HELPFILECODE  := $(shell echo $(HELPFILEMAYBE) | grep -q "\.gz$$" && echo "z" 
|| echo "j")
 endif
 
 # XEMACS VERSION
-XEMACS-TAG := $(shell perl -ne 'if(/^VERSION\s+=\s+([0-9]\.[0-9]+)/) {print 
$$1; exit}' $(XEMACSDIR)/Makefile)
+XEMACS-TAG := $(shell [ -f  $(XEMACSDIR)/Makefile ] &&  perl -ne 
'if(/^VERSION\s+=\s+([0-9]\.[0-9]+)/) {print $$1; exit}' $(XEMACSDIR)/Makefile)
 
 
 .PHONY: helpdist

Reply via email to