Commit 1359fc7b authored by witiko's avatar witiko
Browse files

The `fithesis.dtx` file now generates a `VERSION.tex` file containing

the version of the package, when it's being typeset.
parent e3dcab41
Loading
Loading
Loading
Loading
+5 −3
Original line number Original line Diff line number Diff line
@@ -36,6 +36,8 @@ GUIDES=guide/mu/econ.pdf guide/mu/fi.pdf guide/mu/fsps.pdf \
	guide/mu/ped.pdf guide/mu/phil.pdf guide/mu/sci.pdf
	guide/mu/ped.pdf guide/mu/phil.pdf guide/mu/sci.pdf
PDFS=$(MANUAL) $(GUIDES)
PDFS=$(MANUAL) $(GUIDES)
DOCS=$(PDFS) README
DOCS=$(PDFS) README
VERSION=VERSION.tex
MAKEABLES=$(PDFS) $(CLASSFILES) $(VERSION)
TDSARCHIVE=fithesis.tds.zip
TDSARCHIVE=fithesis.tds.zip
CTANARCHIVE=fithesis.ctan.zip
CTANARCHIVE=fithesis.ctan.zip
DISTARCHIVE=fithesis.zip
DISTARCHIVE=fithesis.zip
@@ -91,7 +93,7 @@ $(TDSARCHIVE):


# This target generates a distribution file
# This target generates a distribution file
$(DISTARCHIVE): $(SOURCES) $(LATEXFILES) $(MAKES) $(TESTS) \
$(DISTARCHIVE): $(SOURCES) $(LATEXFILES) $(MAKES) $(TESTS) \
	$(DOCS) $(PDFSOURCES) $(MISCELLANEOUS) $(EXAMPLES)
	$(DOCS) $(PDFSOURCES) $(MISCELLANEOUS) $(EXAMPLES) $(VERSION)
	DIR=`mktemp -d` && mkdir --parents "$$DIR/fithesis" && \
	DIR=`mktemp -d` && mkdir --parents "$$DIR/fithesis" && \
	cp --verbose $(TDSARCHIVE) "$$DIR"/fithesis && \
	cp --verbose $(TDSARCHIVE) "$$DIR"/fithesis && \
	cp --parents --verbose $^ "$$DIR/fithesis" && \
	cp --parents --verbose $^ "$$DIR/fithesis" && \
@@ -100,7 +102,7 @@ $(DISTARCHIVE): $(SOURCES) $(LATEXFILES) $(MAKES) $(TESTS) \


# This target generates a CTAN distribution file
# This target generates a CTAN distribution file
$(CTANARCHIVE): $(SOURCES) $(MAKES) $(TESTS) \
$(CTANARCHIVE): $(SOURCES) $(MAKES) $(TESTS) \
	$(MISCELLANEOUS) $(EPSLOGOS) $(DOCS) $(DEVEXAMPLES)
	$(MISCELLANEOUS) $(EPSLOGOS) $(DOCS) $(DEVEXAMPLES) $(VERSION)
	DIR=`mktemp -d` && mkdir --parents "$$DIR/fithesis" && \
	DIR=`mktemp -d` && mkdir --parents "$$DIR/fithesis" && \
	cp --verbose $(TDSARCHIVE) "$$DIR" && \
	cp --verbose $(TDSARCHIVE) "$$DIR" && \
	cp --parents --verbose $^ "$$DIR/fithesis" && \
	cp --parents --verbose $^ "$$DIR/fithesis" && \
@@ -168,5 +170,5 @@ dist-implode:


# This pseudo-target removes any makeable files.
# This pseudo-target removes any makeable files.
implode: clean dist-implode
implode: clean dist-implode
	rm -f $(PDFS) $(CLASSFILES)
	rm -f $(MAKEABLES)
	for dir in $(SUBMAKES); do make implode -C "$$dir"; done
	for dir in $(SUBMAKES); do make implode -C "$$dir"; done
+2 −1
Original line number Original line Diff line number Diff line
@@ -45,8 +45,9 @@
%    \end{macrocode}
%    \end{macrocode}
%<*class>
%<*class>
\NeedsTeXFormat{LaTeX2e}
\NeedsTeXFormat{LaTeX2e}
% \fi
% Define `\thesis@version` and store it in the `VERSION.tex` file \fi
\def\thesis@version{2015/06/21 v0.3.16 fithesis3 MU thesis class}
\def\thesis@version{2015/06/21 v0.3.16 fithesis3 MU thesis class}
% {\newwrite\f\openout\f=VERSION\write\f{\thesis@version}\closeout\f}
%
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%