draining just to be sure for CTAN distribution

This commit is contained in:
Michael Kohlhase 2015-01-16 08:52:34 +01:00
parent 0b8f553d20
commit 931603d402

View File

@ -1,10 +1,11 @@
# make a zip for CTAN submission including the TeX directory structure # make a zip for CTAN submission including the TeX directory structure
TMP = /tmp
TDSCOLL = proposal TDSCOLL = proposal
EXPORTED = /tmp/$(TDSCOLL) EXPORTED = $(TMP)/$(TDSCOLL)
TDSDIR = /tmp/$(TDSCOLL).tds TDSDIR = $(TMP)/$(TDSCOLL).tds
TDSZIP = /tmp/$(TDSCOLL).tds.zip TDSZIP = $(TMP)/$(TDSCOLL).tds.zip
CTANDIR = /tmp/$(TDSCOLL).ctan CTANDIR = $(TMP)/$(TDSCOLL).ctan
CTANZIP = /tmp/$(TDSCOLL).ctan.zip CTANZIP = $(TMP)/$(TDSCOLL).ctan.zip
# this target makes the file CTANZIP by creating and populating the directory # 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 # CTANDIR and zipping it. To be current, we first make all, and update
@ -21,7 +22,7 @@ ctan: all filedate checksum
rm $(EXPORTED)/.gitignore rm $(EXPORTED)/.gitignore
cd $(EXPORTED); $(MAKE) -$(MAKEFLAGS) ctanext cd $(EXPORTED); $(MAKE) -$(MAKEFLAGS) ctanext
@echo "zipping the result to $(TDSCOLL).ctan.zip" @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) rm -Rf $(EXPORTED) $(CTANDIR) $(CTANZIP)
# this target is run on EXPORTED. It first makes the target tdsext below, # 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) cp $(TDS.doc) $(TDSDIR)/doc/latex/$(TDSCOLL)
# copy stuff around for a CTAN submission in the DTX dirs # copy stuff around for a CTAN submission in the DTX dirs
CTANDIR = /tmp/$(TDSCOLL).ctan CTANDIR = $(TMP)/$(TDSCOLL).ctan
lctan: lctan:
mkdir -p $(CTANDIR)/sty; mkdir -p $(CTANDIR)/sty;
@for d in $(DISTDIRS); do (cp -R $$d $(CTANDIR)/sty) done @for d in $(DISTDIRS); do (cp -R $$d $(CTANDIR)/sty) done