draining just to be sure for CTAN distribution

This commit is contained in:
Michael Kohlhase 2015-11-20 12:08:09 +01:00
parent 4070adfb2d
commit bb0dbeb4b2

View File

@ -11,7 +11,9 @@
# directory struture, which is generated by running "make tdsext" (see below)
# on $(EXPORTED).
#
# Note furthermore, that this Makefile only
# Note furthermore, that this Makefile only automates the top-level mechanics
# of the CTAN zip files, ... It relies on the Variables set in the regular Makefiles
# and in particular on their targets "ltds", "lctan", "filedate", and "checksum".
################################################################
HERE = $(shell pwd)
@ -29,9 +31,8 @@ MAKE = make
# the filedates and the checksums. To get rid of all the junk we commit and
# 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.
ctan: #all filedate checksum *******
ctan: all # filedate checksum
git commit -am'draining just to be sure for CTAN distribution'
# git push
rm -Rf $(EXPORTED)
@echo "exporting a clean copy to $(EXPORTED)"
cd $(TMP); git clone $(HERE); mv LaTeX-proposal $(EXPORTED)
@ -40,7 +41,7 @@ ctan: #all filedate checksum *******
cd $(EXPORTED); $(MAKE) -$(MAKEFLAGS) ctanext
@echo "zipping the result to $(TDSCOLL).ctan.zip"
cd $(TMP); zip -r -q $(CTANZIP) $(TDSCOLL); cp $(CTANZIP) $(HERE)
# rm -Rf $(EXPORTED) $(CTANDIR) $(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.
@ -62,7 +63,7 @@ tdsext:
@echo "making a TDS compliant archive"
rm -Rf $(TDSDIR) $(TDSZIP)
@echo " enabling checksums"
# $(MAKE) -$(MAKEFLAGS) enablechecksum *******
# $(MAKE) -$(MAKEFLAGS) enablechecksum
@echo " copying over stuff to $(TDSDIR)"
@for d in $(DTXDIRS); do (cd $$d && $(MAKE) -$(MAKEFLAGS) ltds) done
@for d in $(SRCDIRS); do (cp -R $$d $(TDSDIR)/source/latex/$(TDSCOLL)) done;
@ -70,8 +71,4 @@ tdsext:
cp $(TDS.doc) $(TDSDIR)/doc/latex/$(TDSCOLL)
@echo "zipping the result to $(TDSCOLL).tds.zip"
cd $(TDSDIR); zip -r -q $(TDSZIP) .; cd -
# rm -Rf $(TDSDIR)
echo:
@echo $(DTXDIRS)
rm -Rf $(TDSDIR)