draining just to be sure for CTAN distribution

This commit is contained in:
Michael Kohlhase 2015-01-16 09:34:15 +01:00
parent 4ffdbd5782
commit e3b27cc394
1 changed files with 7 additions and 6 deletions

View File

@ -1,4 +1,5 @@
# make a zip for CTAN submission including the TeX directory structure
HERE = $(shell pwd)
TMP = /tmp
TDSCOLL = proposal
EXPORTED = $(TMP)/$(TDSCOLL).exp
@ -17,13 +18,13 @@ ctan: all filedate checksum
git push
rm -Rf $(EXPORTED)
@echo "exporting a clean copy to $(EXPORTED)"
cd /tmp; git clone $(GITURI); mv LaTeX-proposal $(TDSCOLL)
cd /tmp; git clone $(HERE); mv LaTeX-proposal $(EXPORTED)
rm -Rf $(EXPORTED)/.git
rm $(EXPORTED)/.gitignore
cd $(EXPORTED); $(MAKE) -$(MAKEFLAGS) ctanext
@echo "zipping the result to $(TDSCOLL).ctan.zip"
cd $(TMP); zip -r -q $(CTANZIP) $(CTANCOLL); cd -; cp $(CTANZIP) .
rm -Rf $(EXPORTED) $(CTANDIR) $(CTANZIP)
# rm $(EXPORTED)/.gitignore
# cd $(EXPORTED); $(MAKE) -$(MAKEFLAGS) ctanext
# @echo "zipping the result to $(TDSCOLL).ctan.zip"
# cd $(TMP); zip -r -q $(CTANZIP) $(CTANCOLL); cd -; cp $(CTANZIP) .
# rm -Rf $(EXPORTED) $(CTANDIR) $(CTANZIP)
# this target is run on EXPORTED. It first makes the target tdsext below,
# and then copies all necessary stuff into CTANDIR.