OpenCores
URL https://opencores.org/ocsvn/phr/phr/trunk

Subversion Repositories phr

[/] [phr/] [trunk/] [doc/] [informe-tesis/] [phd-thesis-template-master/] [compile-thesis.sh] - Blame information for rev 264

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 125 guanucolui
#!/bin/bash
2
# A script to compile the PhD Thesis - Krishna Kumar
3
# Distributed under GPLv2.0 License
4
 
5
compile="compile";
6
clean="clean";
7
 
8
if test -z "$2"
9
then
10
if [ $1 = $clean ]; then
11
        echo "Cleaning please wait ..."
12
        rm -f *~
13
        rm -rf *.aux
14
        rm -rf *.bbl
15
        rm -rf *.blg
16
        rm -rf *.d
17
        rm -rf *.fls
18
        rm -rf *.ilg
19
        rm -rf *.ind
20
        rm -rf *.toc*
21
        rm -rf *.lot*
22
        rm -rf *.lof*
23
        rm -rf *.log
24
        rm -rf *.idx
25
        rm -rf *.out*
26
        rm -rf *.nlo
27
        rm -rf *.nls
28
        rm -rf $filename.pdf
29
        rm -rf $filename.ps
30
        rm -rf $filename.dvi
31
        rm -rf *#*
32
        echo "Cleaning complete!"
33
        exit
34
else
35
        echo "Shell scrip for compiling the PhD Thesis"
36
        echo "Usage: sh ./compile-thesis.sh [OPTIONS] [filename]"
37
        echo "[option]  compile: Compiles the PhD Thesis"
38
        echo "[option]  clean: removes temporary files no filename required"
39
        exit
40
fi
41
fi
42
 
43
filename=$2;
44
 
45
if [ $1 = $clean ]; then
46
        echo "Cleaning please wait ..."
47
        rm -f *~
48
        rm -rf *.aux
49
        rm -rf *.bbl
50
        rm -rf *.blg
51
        rm -rf *.d
52
        rm -rf *.fls
53
        rm -rf *.ilg
54
        rm -rf *.ind
55
        rm -rf *.toc*
56
        rm -rf *.lot*
57
        rm -rf *.lof*
58
        rm -rf *.log
59
        rm -rf *.idx
60
        rm -rf *.out*
61
        rm -rf *.nlo
62
        rm -rf *.nls
63
        rm -rf $filename.pdf
64
        rm -rf $filename.ps
65
        rm -rf $filename.dvi
66
        rm -rf *#*
67
        echo "Cleaning complete!"
68
        exit
69
elif [ $1 = $compile ]; then
70
        echo "Compiling your PhD Thesis...please wait...!"
71
        pdflatex -interaction=nonstopmode $filename.tex
72
        bibtex $filename.aux
73
        makeindex $filename.aux
74
        makeindex $filename.idx
75
        makeindex $filename.nlo -s nomencl.ist -o $filename.nls
76
        pdflatex -interaction=nonstopmode $filename.tex
77
        makeindex $filename.nlo -s nomencl.ist -o $filename.nls
78
        pdflatex -interaction=nonstopmode $filename.tex
79
        echo "Success!"
80
        exit
81
fi
82
 
83
 
84
if test -z "$3"
85
then
86
        exit
87
fi

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.