From 2116b098967c4ac8c5c341b24ece64007d46d45f Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 21 Sep 2012 22:30:34 +0000 Subject: mdframed (21sep12) git-svn-id: svn://tug.org/texlive/trunk@27762 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/source/latex/mdframed/Makefile | 43 +++++++++++++++++++----- 1 file changed, 35 insertions(+), 8 deletions(-) (limited to 'Master/texmf-dist/source/latex/mdframed/Makefile') diff --git a/Master/texmf-dist/source/latex/mdframed/Makefile b/Master/texmf-dist/source/latex/mdframed/Makefile index 53c5c0d3b2f..a1f2040f1d1 100644 --- a/Master/texmf-dist/source/latex/mdframed/Makefile +++ b/Master/texmf-dist/source/latex/mdframed/Makefile @@ -1,6 +1,6 @@ ################################################################ ## Makefile for mdframed project folder -## $Id: Makefile 422 2012-05-31 17:07:26Z marco $ +## $Id: Makefile 428 2012-06-06 12:30:18Z marco $ ################################################################ ## Definitions ################################################################ @@ -22,7 +22,7 @@ STYLE_IV = md-frame-3 EXAMPLLIST= $(EXAMPLED) $(EXAMPLET) $(EXAMPLEP) $(EXAMPLESX) FILELIST = $(PACKAGE) $(EXAMPLED) $(EXAMPLET) $(EXAMPLEP) $(EXAMPLESX) STYLELIST = $(STYLE_I) $(STYLE_II) $(STYLE_III) $(STYLE_IV) -AUXFILES = aux dtxe glo glolog gls hd ins idx idxlog ilg ind log out ps thm tmp toc +AUXFILES = aux dtxe glo glolog gls hd ins idx idxlog ilg ind log out ps thm tmp toc xdv ################################################################ ## Colordefinition ################################################################ @@ -41,13 +41,20 @@ help: @echo -e "\tmake examples\t\t--\tcompiles all example files" @echo -e "\tmake clean\t\t--\tremove all helpfiles created by mdframed" @echo -e "\tmake changeversion\t--\tmaintaner tool to change the version" + @echo -e "\tmake changerevision\t--\tmaintaner tool to change the revision" + @echo -e "\tmake changedate\t--\tmaintaner tool to change the date" @echo -e "\tmake localinstall\t--\tinstall the package in TEXMFHOME" @echo -e "$(WARN_COLOR)End help$(NO_COLOR)" ################################################################ ## Compilation ################################################################ -%.pdf: %.tex +$(EXAMPLED).pdf: $(EXAMPLED).tex +$(EXAMPLET).pdf: $(EXAMPLET).tex +$(EXAMPLEP).ps: $(EXAMPLEP).tex +$(EXAMPLESX).pdf: $(EXAMPLESX).tex + +%.pdf: NAME=`basename $< .tex` ;\ echo -e "" ;\ echo -e "\t$(WARN_COLOR)Typesetting $$NAME$(NO_COLOR)" ;\ @@ -62,14 +69,14 @@ help: fi ;\ echo -e "\t$(OK_COLOR)Typesetting $$NAME finished $(NO_COLOR)" ;\ -%.ps: %.tex +%.ps: NAME=`basename $< .tex` ;\ echo -e "" ;\ echo -e "\t$(WARN_COLOR)Typesetting $$NAME$(NO_COLOR)" ;\ xelatex --no-pdf --interaction=nonstopmode $< > /dev/null ;\ if [ $$? = 0 ] ; then \ echo -e "\t$(OK_COLOR)compilation in draftmode without errors$(NO_COLOR)" ;\ - echo -e "\t$(OK_COLOR)Run LaTeX again on $$NAME.tex$(NO_COLOR)" ;\ + echo -e "\t$(OK_COLOR)Run XeLaTeX again on $$NAME.tex$(NO_COLOR)" ;\ xelatex --interaction=nonstopmode $< > /dev/null ;\ else \ echo -e "\t$(ERROR_COLOR)compilation in draftmode with errors$(NO_COLOR)" ;\ @@ -130,13 +137,13 @@ docsty: $(PACKAGE).dtx exit 0;\ fi ;\ -examples: $(EXAMPLED).pdf $(EXAMPLET).pdf $(EXAMPLEP).ps $(EXAMPLESX).pdf - exampled: $(EXAMPLED).pdf examplet: $(EXAMPLET).pdf examplep: $(EXAMPLEP).ps examplesx:$(EXAMPLESX).pdf +examples: exampled examplet examplep examplesx + clean: echo "" ;\ echo -e "\t$(WARN_COLOR)Start removing help files$(NO_COLOR)" ;\ @@ -176,7 +183,7 @@ makelocalinstall: echo -e "\t$(OK_COLOR)Installation done$(NO_COLOR)" ;\ ################################################################ -## maintaner tool +## maintainer tool ################################################################ changeversion: @echo @@ -187,6 +194,26 @@ changeversion: echo -e "$(OK_COLOR)Version geändert zu $$REPLY$(NO_COLOR)" @echo +changerevision: + @echo + @echo -e "$(OK_COLOR)Aktuell wird die folgende Revision verwendet" + @sed '/\\def\\mdfrevision/!d' $(PACKAGE).dtx + @echo -e "$(WARN_COLOR)" + @REPLY=`git rev-list HEAD | wc -l` && sed -rie "s/(\\\\def\\\\mdfrevision\{).*(})/\1$$REPLY\2/" $(PACKAGE).dtx&&\ + echo -e "$(OK_COLOR)Revision geändert zu $$REPLY$(NO_COLOR)" + @echo + +changedate: + @echo + @echo -e "$(OK_COLOR)Aktuell wird die folgendes Datum verwendet" + @sed '/\\def\\mdfmaindate/!d' $(PACKAGE).dtx + @echo -e "$(WARN_COLOR)" + @REPLY=`date +"%Y\/%m\/%d"` && sed -rie "s/(\\\\def\\\\mdfmaindate\{).*(})/\1$$REPLY\2/" $(PACKAGE).dtx&&\ + echo -e "$(OK_COLOR)Datum geändert zu $$REPLY$(NO_COLOR)" + @echo + +change: changeversion changerevision changedate + usectanify: echo "" ;\ echo -e "\t$(ERROR_COLOR)Start ctanify$(NO_COLOR)" ;\ -- cgit v1.2.3