draining just to be sure for CTAN distribution

This commit is contained in:
Michael Kohlhase 2015-01-15 14:30:31 +01:00
parent bd0b4afb3b
commit d86764710e
2 changed files with 8 additions and 7 deletions

View File

@ -10,11 +10,12 @@ all clean distclean:
package doc filedate checksum enablechecksum disablechecksum: package doc filedate checksum enablechecksum disablechecksum:
@for d in $(DTXDIRS); do (cd $$d && $(MAKE) -$(MAKEFLAGS) $@) done @for d in $(DTXDIRS); do (cd $$d && $(MAKE) -$(MAKEFLAGS) $@) done
TDSURL = https://svn.kwarc.info/repos/kwarc/doc/macros/forCTAN/proposal GITURI = git@github.com:KWARC/LaTeX-proposal.git
TDS.src = TDS.src =
TDS.doc = README TDS.doc = README.md
TDS.src = TDS.src =
include lib/Makefile.vars
include lib/Makefile.in
include lib/Makefile.ctan include lib/Makefile.ctan
echo: echo:

View File

@ -1,6 +1,5 @@
# make a zip for CTAN submission including the TeX directory structure # make a zip for CTAN submission including the TeX directory structure
SVNEXP = svn export --quiet TDSCOLL = proposal
TDSCOLL ?= $(shell basename $$PWD)
EXPORTED = /tmp/$(TDSCOLL) EXPORTED = /tmp/$(TDSCOLL)
TDSDIR = /tmp/$(TDSCOLL).tds TDSDIR = /tmp/$(TDSCOLL).tds
TDSZIP = /tmp/$(TDSCOLL).tds.zip TDSZIP = /tmp/$(TDSCOLL).tds.zip
@ -13,10 +12,11 @@ CTANZIP = /tmp/$(TDSCOLL).ctan.zip
# export a clean copy EXPORTED, on which we run the target ctanexp below, # export a clean copy EXPORTED, on which we run the target ctanexp below,
# which generates a directory CTANDIR, which we zip and move into place. # which generates a directory CTANDIR, which we zip and move into place.
ctan: all filedate checksum ctan: all filedate checksum
svn ci -m'draining just to be sure for CTAN distribution' git commit -am'draining just to be sure for CTAN distribution'
git push
rm -Rf $(EXPORTED) rm -Rf $(EXPORTED)
@echo "exporting a clean copy to $(EXPORTED)" @echo "exporting a clean copy to $(EXPORTED)"
$(SVNEXP) $(TDSURL) $(EXPORTED) cd /tmp; git clone $(GITURI); mv LaTeX-proposal $(TDSCOLL)
find $(EXPORTED) -name ".svn" -type d -exec rm -Rf {} \; find $(EXPORTED) -name ".svn" -type d -exec rm -Rf {} \;
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"