1 |
|
#!/bin/bash |
2 |
|
|
3 |
< |
LBIN=/usr/bin |
3 |
> |
LBIN=/usr/local/teTeX/bin |
4 |
|
|
5 |
< |
/bin/rm -f currTmp.* |
5 |
> |
base=mule |
6 |
|
|
7 |
< |
cat header.tex > currTmp.tex |
8 |
< |
cat $1 >> currTmp.tex |
9 |
< |
cat footer.tex >> curTmp.tex |
7 |
> |
/bin/rm -f $base.* |
8 |
|
|
9 |
< |
$LBIN/latex currTmp |
10 |
< |
$LBIN/bibtex currTmp |
11 |
< |
$LBIN/latex currTmp |
14 |
< |
$LBIN/latex currTmp |
9 |
> |
cat header.tex > $base.tex |
10 |
> |
cat $1 >> $base.tex |
11 |
> |
cat footer.tex >> $base.tex |
12 |
|
|
13 |
< |
$LBIN/dvips -o currTmp.ps currTmp.dvi |
13 |
> |
$LBIN/latex $base |
14 |
> |
$LBIN/bibtex $base |
15 |
> |
$LBIN/latex $base |
16 |
> |
$LBIN/latex $base |
17 |
|
|
18 |
< |
ghostview currTmp.ps |
18 |
> |
$LBIN/dvips -o $base.ps $base.dvi |
19 |
> |
|
20 |
> |
ghostview $base.ps |