From 262ab21026ab66b418141d33fc3a80281f71842c Mon Sep 17 00:00:00 2001 From: Brian Read Date: Fri, 24 Feb 2023 15:18:55 +0000 Subject: [PATCH] Check for exists createlink LICENSE and C OPYING before copuying into archive --- Makefile.common | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile.common b/Makefile.common index ef17940..6b867c8 100644 --- a/Makefile.common +++ b/Makefile.common @@ -346,9 +346,9 @@ archivefile: @echo "TEMPDIR:$(TEMPDIR)" mkdir -p $(TEMPDIR)/$(TREEPATH) cp -r root $(TEMPDIR)/$(TREEPATH) - cp createlinks $(TEMPDIR)/$(TREEPATH) - cp COPYING $(TEMPDIR)/$(TREEPATH) - cp LICENSE $(TEMPDIR)/$(TREEPATH) + if test -f creatlinks ; then cp createlinks $(TEMPDIR)/$(TREEPATH) + if test -f COPYING ; then cp COPYING $(TEMPDIR)/$(TREEPATH) + if test -f LICENSE ; then cp LICENSE $(TEMPDIR)/$(TREEPATH) ; fi ; rm -f $TREEPATH.$EXT* tar -czvf $(TREEPATH).$(EXT) -C $(TEMPDIR) $(TREEPATH) find $(TEMPDIR) -delete