From 931603d40268cd10370ed17ab1ebfeb6f6a57e26 Mon Sep 17 00:00:00 2001 From: Michael Kohlhase Date: Fri, 16 Jan 2015 08:52:34 +0100 Subject: [PATCH] draining just to be sure for CTAN distribution --- lib/Makefile.ctan | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/lib/Makefile.ctan b/lib/Makefile.ctan index 84d6c51..1c44b21 100644 --- a/lib/Makefile.ctan +++ b/lib/Makefile.ctan @@ -1,10 +1,11 @@ # make a zip for CTAN submission including the TeX directory structure +TMP = /tmp TDSCOLL = proposal -EXPORTED = /tmp/$(TDSCOLL) -TDSDIR = /tmp/$(TDSCOLL).tds -TDSZIP = /tmp/$(TDSCOLL).tds.zip -CTANDIR = /tmp/$(TDSCOLL).ctan -CTANZIP = /tmp/$(TDSCOLL).ctan.zip +EXPORTED = $(TMP)/$(TDSCOLL) +TDSDIR = $(TMP)/$(TDSCOLL).tds +TDSZIP = $(TMP)/$(TDSCOLL).tds.zip +CTANDIR = $(TMP)/$(TDSCOLL).ctan +CTANZIP = $(TMP)/$(TDSCOLL).ctan.zip # this target makes the file CTANZIP by creating and populating the directory # CTANDIR and zipping it. To be current, we first make all, and update @@ -21,7 +22,7 @@ ctan: all filedate checksum rm $(EXPORTED)/.gitignore cd $(EXPORTED); $(MAKE) -$(MAKEFLAGS) ctanext @echo "zipping the result to $(TDSCOLL).ctan.zip" - cd $(CTANDIR); zip -r -q $(CTANZIP) .; cd -; cp $(CTANZIP) . + cd $(TMP); zip -r -q $(CTANZIP) .; cd -; cp $(CTANZIP) . rm -Rf $(EXPORTED) $(CTANDIR) $(CTANZIP) # this target is run on EXPORTED. It first makes the target tdsext below, @@ -61,7 +62,7 @@ ltds: cp $(TDS.doc) $(TDSDIR)/doc/latex/$(TDSCOLL) # copy stuff around for a CTAN submission in the DTX dirs -CTANDIR = /tmp/$(TDSCOLL).ctan +CTANDIR = $(TMP)/$(TDSCOLL).ctan lctan: mkdir -p $(CTANDIR)/sty; @for d in $(DISTDIRS); do (cp -R $$d $(CTANDIR)/sty) done