ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/SCRAM/scripts/makeDoc.sh
Revision: 1.4
Committed: Fri Dec 14 09:03:23 2007 UTC (17 years, 5 months ago) by muzaffar
Content type: application/x-sh
Branch: MAIN
CVS Tags: V1_1_7, V1_1_6, V1_1_5, V1_1_4, V1_1_3, V1_1_2, V1_1_0_reltag8, V1_1_0_reltag7, V1_1_0_reltag6, V1_1_1, V1_1_0_reltag5, V1_1_0_reltag4, V1_1_0_reltag3, V1_1_0_reltag2, V1_1_0_reltag1, V1_1_0_reltag, V1_1_0, V1_1_0_cand3, V1_1_0_cand2, V1_1_0_cand1
Changes since 1.3: +0 -0 lines
Log Message:
replace head with xml branch

File Contents

# Content
1 #!/bin/sh
2 #===========================================================================#
3 # NAME: makeDoc.sh #
4 #===========================================================================#
5 # DATE: Mon Nov 11 17:38:21 2002 #
6 # AUTHOR: Shaun Ashby #
7 # MOD LOG: #
8 #===========================================================================#
9 # DESCRIPTION: Script to build the SCRAM documentation. #
10 #===========================================================================#
11 VERSION=$1
12 SCRAMBASE=$2
13
14 # Exit if no version is given:
15 if [[ $VERSION == "" ]]; then
16 echo "** You must specify a VERSION! **"
17 exit 1
18 fi
19 # Exit if no scram base dir is given:
20 if [[ $SCRAMBASE == "" ]]; then
21 echo "** You must specify a SCRAM release directory!**"
22 exit 1
23 fi
24
25 # Set some locations:
26 DOCDIR=${SCRAMBASE}/$VERSION/doc/tex/manual
27
28 # Find the programs we need:
29 latex=`which latex`
30 makeindex=`which makeindex`
31 dvips=`which dvips`
32 dvipdf=`which dvipdf`
33 psnup=`which psnup`
34
35 # And start:
36 echo
37 echo "Building documentation for SCRAM $VERSION: `date`"
38 echo "------------------------------------------------------------------------"
39 echo
40 echo "Using $DOCDIR as doc directory"
41 echo
42 # Change into doc dir:
43 cd $DOCDIR
44 # Build PS and PDF files:
45 echo "running $latex..."
46 $latex SCRAM.tex
47 echo "making index using $makeindex"
48 $makeindex SCRAM.idx
49 echo "re-running $latex..."
50 echo
51 $latex SCRAM.tex
52 echo "1..."
53 $latex SCRAM.tex
54 echo "2..."
55 echo
56 echo "Making PS files: "
57 $dvips SCRAM.dvi
58 echo
59 $psnup -2 SCRAM.ps > SCRAM-2up.ps
60 echo "-- done --"