source: other-projects/trunk/realistic-books/CASCADE-MAKE.sh@ 19633

Last change on this file since 19633 was 19253, checked in by davidb, 15 years ago

Establishing a source code repository for Veronica's Realistic Book's software

File size: 818 bytes
Line 
1#!/bin/bash
2
3source setup.bash silent
4source cascade-make/lib/cascade-lib.bash
5
6
7# Ensure that the necessary directories exist within the 'installed' area
8
9for d in include lib ; do
10 if [ ! -e "$RBHOME_INSTALLED/$d" ] ; then
11 echo "Creating $RBHOME_INSTALLED/$d"
12 mkdir -p "$RBHOME_INSTALLED/$d"
13 fi
14done
15
16
17for d in packages ; do
18 echo "Running $d/CASCADE-MAKE.sh $*"
19
20 (cd $d ; ./CASCADE-MAKE.sh $*)
21
22 if [ $? != 0 ] ; then
23 echo "Error encountered running $d/CASCADE-MAKE.sh"
24 exit 1
25 fi
26done
27
28if [ $install = "1" ] ; then
29
30 if [ ! -e "$RBHOME_INSTALLED/bin/script" ] ; then
31 echo "Creating $RBHOME_INSTALLED/bin/script"
32 mkdir "$RBHOME_INSTALLED/bin/script"
33 fi
34
35 /bin/cp src/pdf2realbook.pl "$RBHOME_INSTALLED/bin/script/."
36 chmod a+x "$RBHOME_INSTALLED/bin/script/pdf2realbook.pl"
37fi
38
Note: See TracBrowser for help on using the repository browser.