Initial checkin
0 parent commit 110b7838a43f7483a89eab5fc7ed496ab8e6aeb9
@tdaneli tdaneli authored on 16 Jul 2010
Showing 2 changed files
View
6
latex.sty 0 → 100644
%% Default LaTeX Style Sheet For RST Documents
%% $Id: latex.sty,v 1.101 2010/07/16 14:37:09 tdaneli Exp $
 
\setlength{\parindent}{0pt}
\setlength{\parskip}{6pt plus 2pt minus 1pt}
View
114
makefile 0 → 100644
# Produce Various Output Formats From A Restructured Text Source Document
# $Id: makefile,v 1.101 2010/07/16 14:38:02 tdaneli Exp $
 
 
#####
# Setup The Project Here
#####
 
PROJECT = NAMEOFPROJECT
 
# List all the output files
 
1: ${PROJECT}.1
 
dvi: ${PROJECT}.dvi
 
html: ${PROJECT}.html
 
latex: ${PROJECT}.latex
 
odt: ${PROJECT}.odt
 
pdf: ${PROJECT}.pdf
 
ps: ${PROJECT}.ps
 
 
#####
# Things That May Have To Be Changed, Depending On System
#####
 
FILTDIR = /usr/bin
PROGDIR = /usr/bin
 
 
########################################################################
# Nothing Below This Line Should Need To Be Changed #
########################################################################
 
 
 
# RST Filter And Needed Program Locations
 
2HTML = ${FILTDIR}/rst2html.py
2LATEX = ${FILTDIR}/rst2newlatex.py
2ODT = ${FILTDIR}/rst2odt.py
2MAN = ${FILTDIR}/rst2man.py
 
DVIPS = ${PROGDIR}/dvips
PDFLATEX = ${PROGDIR}/pdflatex
LATEX = ${PROGDIR}/latex
 
# File Types
 
CLEAN = .aux .log .out \~
DOCFILES = .1 .dvi .html .latex .odt .pdf .ps
 
# Conversion Rules
 
%.dvi : %.latex
${LATEX} $*.latex
 
%.html : %.txt
${2HTML} <$*.txt >$*.html
 
%.latex : %.txt
${2LATEX} $*.txt >$*.latex
 
%.1 : %.txt
${2MAN} <$*.txt >$*.1
 
%.odt : %.txt
${2ODT} <$*.txt >$*.odt
 
%.pdf : %.txt
${PDFLATEX} $*.latex
 
%.ps : %.dvi
${DVIPS} $*.dvi
 
 
#####
# Packaging
#####
 
all: 1 dvi html latex odt pdf ps
 
pkg: all clean
tar -czvf ${PROJECT}-docs.tar.gz ${PROJECT}.*
 
 
#####
# Cleanup stanzas
#####
 
clean:
-@for type in ${CLEAN};\
do\
rm -v *$$type;\
done
 
scrub: clean
-@for type in ${DOCFILES};\
do\
rm -v *$$type;\
done