ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/SCRAM/scripts/makeDoc.sh
Revision: 1.2
Committed: Thu Nov 14 16:50:40 2002 UTC (22 years, 6 months ago) by sashby
Content type: application/x-sh
Branch: MAIN
CVS Tags: V1_0_3-p4, forV1_1_0, v103_xml_071106, V1_0_3-p3, V1_0_3-p2, V110p2, V110p1, V1_0_4p1, V1_0_3-p1, V1_0_3, V1_0_2, V1_0_2_p1, v102p1, V1_0_1, V1_0_0, V1_pre0, V0_19_7
Branch point for: v103_with_xml, v103_branch, SCRAM_V1_BRANCH
Changes since 1.1: +18 -29 lines
Log Message:
Some final changes in preparation for release.

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 --"