Check for exists createlink LICENSE and C

OPYING before copuying into archive
This commit is contained in:
Brian Read 2023-02-24 15:18:55 +00:00
parent 46459effc0
commit 262ab21026

View File

@ -346,9 +346,9 @@ archivefile:
@echo "TEMPDIR:$(TEMPDIR)" @echo "TEMPDIR:$(TEMPDIR)"
mkdir -p $(TEMPDIR)/$(TREEPATH) mkdir -p $(TEMPDIR)/$(TREEPATH)
cp -r root $(TEMPDIR)/$(TREEPATH) cp -r root $(TEMPDIR)/$(TREEPATH)
cp createlinks $(TEMPDIR)/$(TREEPATH) if test -f creatlinks ; then cp createlinks $(TEMPDIR)/$(TREEPATH)
cp COPYING $(TEMPDIR)/$(TREEPATH) if test -f COPYING ; then cp COPYING $(TEMPDIR)/$(TREEPATH)
cp LICENSE $(TEMPDIR)/$(TREEPATH) if test -f LICENSE ; then cp LICENSE $(TEMPDIR)/$(TREEPATH) ; fi ;
rm -f $TREEPATH.$EXT* rm -f $TREEPATH.$EXT*
tar -czvf $(TREEPATH).$(EXT) -C $(TEMPDIR) $(TREEPATH) tar -czvf $(TREEPATH).$(EXT) -C $(TEMPDIR) $(TREEPATH)
find $(TEMPDIR) -delete find $(TEMPDIR) -delete