diff options
author | Karl Berry <karl@freefriends.org> | 2006-01-11 23:52:26 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2006-01-11 23:52:26 +0000 |
commit | babc61d2ad0c761d8493b55c51c7b698cdb0d17d (patch) | |
tree | e9e7fd8bbe97883dbdb78cff4e53cc1940ef0297 /Master | |
parent | 1789139f0046696780dcc13e576905d220961f2d (diff) |
trunk/Master/texmf-dist/source/latex/draftcopy
git-svn-id: svn://tug.org/texlive/trunk@230 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r-- | Master/texmf-dist/source/latex/draftcopy/Makefile | 144 | ||||
-rw-r--r-- | Master/texmf-dist/source/latex/draftcopy/draftcopy.dtx | 49 | ||||
-rw-r--r-- | Master/texmf-dist/source/latex/draftcopy/draftcopy.ins | 75 |
3 files changed, 268 insertions, 0 deletions
diff --git a/Master/texmf-dist/source/latex/draftcopy/Makefile b/Master/texmf-dist/source/latex/draftcopy/Makefile new file mode 100644 index 00000000000..a6564c9c0b6 --- /dev/null +++ b/Master/texmf-dist/source/latex/draftcopy/Makefile @@ -0,0 +1,144 @@ +# Makefile for the LaTeX2e package `draftcopy' +# Copyright (C)1995 Dr. Juergen Vollmer, all rights reserved. +# Dr. Juergen Vollmer, Viktoriastrasse 15, D-76133 Karlsruhe, Germany +# Juergen.Vollmer@acm.org +# $Id: Makefile,v 2.60 2002/02/25 09:13:32 vollmer Exp $ + +BASE = draftcopy +VERSION = 2.16 +V_DATE = February 25, 2002 +VV_DATE = 2002/02/25 + +DVIPS = dvips +GZIP = gzip +LATEX = latex +MAKEINDEX = makeindex +PDFLATEX = pdflatex + +# a postscript viewer: +GV = ghostscript +GV = gv + +#-------- user configuration section +TEX_DIR = /usr/lib/teTeX/texmf +STY_DIR = $(TEX_DIR)/tex/latex/misc +CFG_DIR = $(TEX_DIR)/tex/latex/config +DOC_DIR = $(TEX_DIR)/doc/latex/draftcopy +SRC_DIR = $(TEX_DIR)/source/latex/draftcopy +#-------- end of user configuration section + +DATE = `date +%Y-%m-%d` +DATE2 = `date +%Y/%m/%d` +TAR_BAK = $(BASE)-$(DATE)-backup.tar.gz +TAR_SRC = $(BASE)-$(DATE)-source.tar.gz +TAR_DIST = $(BASE)-$(VERSION).tar.gz +EX = --exclude "*.o" --exclude core --exclude "*.tar.gz" --exclude "*~" \ + --exclude "*.a" +EXrcs = $(EX) --exclude "*/RCS/*" --exclude "*/RCS" + +.PHONY: all clean realclean diff backup src-tar + +all: draftcopy.dtx $(BASE).ps $(BASE).pdf test clean + +draftcopy.dtx: draftcopy.doc draftcopy.ins + $(LATEX) draftcopy.ins + +%.dvi: %.dtx + $(LATEX) $*.dtx + makeindex -s gind.ist -o $*.ind $*.idx + makeindex -s gglo.ist -o $*.gls $*.glo + rm -f rcsinfo.ins rcsinfo.perl + $(LATEX) $*.dtx + +%.dvi: %.tex + rm -f *.toc *.aux + $(LATEX) $*.tex + $(LATEX) $*.tex + +%.ps: %.dvi + $(DVIPS) -o $*.ps $*.dvi + +%.pdf: %.dtx + rm -f *.toc *.aux + $(PDFLATEX) $*.dtx + $(PDFLATEX) $*.dtx + +test: test-portrait test-landscape + +test-portrait: + for i in 1 2 3 4 5 6 7 8 9 10 13 14 15 16; do \ + f=$(BASE)-test-$$i; \ + echo file: $$f; \ + $(LATEX) $$f ; \ + $(DVIPS) -o $$f.ps $$f.dvi; \ + $(GV) $$f.ps ; \ + done + +test-landscape: + for i in 11 12; do \ + f=$(BASE)-test-$$i; \ + echo file: $$f; \ + $(LATEX) $$f ; \ + $(DVIPS) -t landscape -o $$f.ps $$f.dvi; \ + $(GV) -seascape $$f.ps ; \ + done + +install: draftcopy.dtx draftcopy.dvi draftcopy.ps + [ -d $(TEX_DIR) ] || mkdir $(TEX_DIR) + [ -d $(DOC_DIR) ] || mkdir $(DOC_DIR) + [ -d $(SRC_DIR) ] || mkdir $(SRC_DIR) + [ -d $(CFG_DIR) ] || mkdir $(CFG_DIR) + [ -d $(STY_DIR) ] || mkdir $(STY_DIR) + cp draftcopy.sty $(STY_DIR) + cp draftcopy.cfg $(CFG_DIR) + cp draftcopy.dtx $(DOC_DIR) + cp draftcopy.dvi $(DOC_DIR) + cp draftcopy.ps $(DOC_DIR) + cp draftcopy-test-*.tex $(DOC_DIR) + cp draftcopy.doc $(SRC_DIR) + cp draftcopy.ins $(SRC_DIR) + cp README $(SRC_DIR) + cp THIS-IS-VERSION-$(VERSION) $(SRC_DIR) + +uninstall: + rm -f $(STY_DIR)/draftcopy.sty + rm -f $(CFG_DIR)/draftcopy.cfg + rm -fr $(DOC_DIR) + rm -fr $(SRC_DIR) + +clean: + -rm -f *.dtx *.log *.aux *.lof *.lot *.toc + -rm -f *.idx *.ind *.glo *.gls *~ *.ilg *.out + +realclean: clean + -rm -f *.sty *.cls *.ps *.dvi *.cfg *.pdf + -rm -f *test* + +src-tar: + $(MAKE) realclean + @cd ..; tar $(EXrcs) -czvf $(BASE)/$(TAR_SRC) $(BASE) + +dist: + rm -f THIS-IS-VERSION-* + co -l draftcopy.doc draftcopy.ins README Makefile + @rm -f .xxx; cp draftcopy.doc .xxx + @sed < .xxx -e 's/\(^% \\date{\).*}/\1$(V_DATE); Version $(VERSION)}/' \ + -e 's|\(^ *\\ProvidesPackage{draftcopy}\)\[.*\]|\1[$(VV_DATE) v$(VERSION)]|' \ + > draftcopy.doc + @rm -f .xxx; cp draftcopy.ins .xxx + @sed < .xxx -e 's/\(Version:\) *[0-9]*\.[0-9]*.*}/\1 $(VERSION); $(V_DATE)}/' \ + > draftcopy.ins + @rm -f .xxx; cp README .xxx + @sed < .xxx -e 's/\(Version:\) *[0-9]*\.[0-9]*.*$$/\1 $(VERSION); $(V_DATE)/' \ + > README + V=`echo $(VERSION)-$(VV_DATE) | sed -e 's|\.|-|g' -e's|/|-|g'`; \ + ci -u -N"VERSION-$$V" -m"Distribution" \ + draftcopy.ins draftcopy.doc Makefile README + - $(MAKE) realclean all + @echo "VERSION $(VERSION) DATE=$(V_DATE)" > THIS-IS-VERSION-$(VERSION) + @cd ..; tar $(EXrcs) -czvf $(BASE)/$(TAR_DIST) \ + $(BASE)/draftcopy.ins \ + $(BASE)/draftcopy.doc \ + $(BASE)/Makefile \ + $(BASE)/README \ + $(BASE)/THIS-IS-VERSION-$(VERSION) diff --git a/Master/texmf-dist/source/latex/draftcopy/draftcopy.dtx b/Master/texmf-dist/source/latex/draftcopy/draftcopy.dtx new file mode 100644 index 00000000000..a45c9a1f920 --- /dev/null +++ b/Master/texmf-dist/source/latex/draftcopy/draftcopy.dtx @@ -0,0 +1,49 @@ +%% +%% This is file `draftcopy.dtx', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% draftcopy.doc (with options: `driver') +%% +%% IMPORTANT NOTICE: +%% +%% For the copyright see the source file. +%% +%% Any modified versions of this file must be renamed +%% with new filenames distinct from draftcopy.dtx. +%% +%% For distribution of the original source see the terms +%% for copying and modification in the file draftcopy.doc. +%% +%% This generated file may be distributed as long as the +%% original source files, as listed above, are part of the +%% same distribution. (The sources need not necessarily be +%% in the same archive or directory.) +\iffalse +\fi + + + + + + + +\documentclass[english,a4paper]{article} +\usepackage{doc} +\usepackage[latin1]{inputenc} +\usepackage{babel} +\usepackage[light,first,bottomafter]{draftcopy} +\RecordChanges +\EnableCrossrefs +\CodelineIndex +\begin{document} +\DocInput{draftcopy.doc} +\PrintChanges +\setcounter{IndexColumns}{2} +\PrintIndex +\end{document} + +\endinput +%% +%% End of file `draftcopy.dtx'. diff --git a/Master/texmf-dist/source/latex/draftcopy/draftcopy.ins b/Master/texmf-dist/source/latex/draftcopy/draftcopy.ins new file mode 100644 index 00000000000..0c2fa246913 --- /dev/null +++ b/Master/texmf-dist/source/latex/draftcopy/draftcopy.ins @@ -0,0 +1,75 @@ +%% Installation batch file for the package draftcopy to use with LaTeX2e +%% This package is used to print on some pages the word `DRAFT' +%% (or the language dependend analogon) ``behind'' the intended stuff. +%% +%% Copyright (C) 1995 Dr. Juergen Vollmer, Karlsruhe, +%% Viktoriastrasse 15, D-76133 Karlsruhe, Germany +%% Juergen.Vollmer@acm.org +%% +%% This program can be redistributed and/or modified under the terms +%% of the LaTeX Project Public License Distributed from CTAN +%% archives in directory macros/latex/base/lppl.txt; either +%% version 1 of the License, or any later version. +%% +%% If you find this software useful, please send me a postcard. +%% +%% To install: +%% call "latex draftcopy.ins" +%% or under UNIX systems +%% call "make" +%% +%% This will produce three files: +%% draftcopy.dtx +%% draftcopy.sty +%% draftcopy.cfg this should be configured to your needs +%% and files containg some tests: +%% draftcopy-test1.tex ... draftcopy-test12.tex +%% +%% To get the documentation: "latex draftcopy.dtx" +%% +%% --------------- start of docstrip commands ------------------ +%% +\def\batchfile{draftcopy.ins} +\input docstrip.tex + +\Msg{} +\Msg{***********************************************************} +\Msg{** Hello to the installation of the `draftcopy' package.} +\Msg{** Version: 2.16; February 25, 2002} +\Msg{***********************************************************} +\Msg{} + +\generateFile{draftcopy.dtx}{f}{\from{draftcopy.doc}{driver}} +\generateFile{draftcopy.sty}{f}{\from{draftcopy.doc}{package}} +\generateFile{draftcopy.cfg}{f}{\from{draftcopy.doc}{config}} +\generateFile{draftcopy-test-1.tex}{f}{\from{draftcopy.doc}{test1}} +\generateFile{draftcopy-test-2.tex}{f}{\from{draftcopy.doc}{test2}} +\generateFile{draftcopy-test-3.tex}{f}{\from{draftcopy.doc}{test3}} +\generateFile{draftcopy-test-4.tex}{f}{\from{draftcopy.doc}{test4}} +\generateFile{draftcopy-test-5.tex}{f}{\from{draftcopy.doc}{test5}} +\generateFile{draftcopy-test-6.tex}{f}{\from{draftcopy.doc}{test6}} +\generateFile{draftcopy-test-7.tex}{f}{\from{draftcopy.doc}{test7}} +\generateFile{draftcopy-test-8.tex}{f}{\from{draftcopy.doc}{test8}} +\generateFile{draftcopy-test-9.tex}{f}{\from{draftcopy.doc}{test9}} +\generateFile{draftcopy-test-10.tex}{f}{\from{draftcopy.doc}{test10}} +\generateFile{draftcopy-test-11.tex}{f}{\from{draftcopy.doc}{test11}} +\generateFile{draftcopy-test-12.tex}{f}{\from{draftcopy.doc}{test12}} +\generateFile{draftcopy-test-13.tex}{f}{\from{draftcopy.doc}{test13}} +\generateFile{draftcopy-test-14.tex}{f}{\from{draftcopy.doc}{test14}} +\generateFile{draftcopy-test-15.tex}{f}{\from{draftcopy.doc}{test15}} +\generateFile{draftcopy-test-16.tex}{f}{\from{draftcopy.doc}{test16}} + +\Msg{} +\Msg{***********************************************************} +\Msg{** Edit the file draftcopy.cfg and set the default Postscript driver} +\Msg{** c.f. the file graphics.cfg.} +\Msg{** To finish the installation move the file `draftcopy.sty' and} +\Msg{** draftcopy.cfg to a place where LaTeX will find it.} +\Msg{** To get the documentation: `latex draftcopy.dtx'} +\Msg{** To get some test files: `latex draftcopy-test-1.tex'} +\Msg{** ... `latex draftcopy-test-12.tex'} +\Msg{** Happy TeXing} +\Msg{***********************************************************} +\Msg{} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ No newline at end of file |