summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/plain/plipsum/compile.sh
blob: 228d211fddaa1c7f68ea87f553dc05ec8dcc0e17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/bin/bash

MASTER='plipsum'

# commands to compile the `plipsum' package.
#
# 1 - the tex format
notangle -R$MASTER.tex $MASTER.nw | ./stripc > $MASTER.tex
#
# 2 - the example file.
notangle -Rpliptest.tex $MASTER.nw | ./stripc > pliptest.tex
#
# 3 - the printable documentation.
noweave -index -filter "elide paragraphs" $MASTER.nw > $MASTER-doc.tex
pdflatex $MASTER-doc.tex
pdflatex $MASTER-doc.tex
pdflatex $MASTER-doc.tex

# elimina i files non piu' necessari
rm -v $MASTER-doc.aux
rm -v $MASTER-doc.log
rm -v $MASTER-doc.tex
rm -v $MASTER-doc.toc


# istruzioni per la installazione e saluti.
echo " *************************************************************"
echo "   To finish the installation you have to move the following"
echo "   files into a directory searched by TeX:"
echo ""
echo "       plipsum.tex"
echo ""
echo "   A good place to put it is:"
echo ""
echo "       ~/texmf/tex/plain/plipsum"
echo ""
echo ""
echo "   There exists two separate files"
echo ""
echo "     plipsum-doc.pdf"
echo "     pliptest.tex"
echo ""
echo "   containing the user documentation. A good place to put"
echo "   them is ~/texmf/doc/plain/plipsum."
echo ""
echo ""
echo "   The source files"
echo ""
echo "     plipsum.nw"
echo "     compile.sh"
echo ""
echo "   can be put into ~/texmf/source/plain/plipsum"
echo ""
echo ""
echo "   ======================================================"
echo "   Don't forget to run the command '$ texhash ~/texmf' !"
echo "   ======================================================"
echo ""
echo ""
echo "   Happy TeXing!"
echo " *************************************************************"

# fine