source: gs2-extensions/video-and-audio/trunk/src/CASCADE-MAKE-NG.sh@ 36844

Last change on this file since 36844 was 36844, checked in by davidb, 19 months ago

Changes to mean scripts can be run without explicit source setup.bash first

  • Property svn:executable set to *
File size: 1.1 KB
Line 
1#!/bin/bash
2
3if [ -d "my-python3" ] ; then
4 echo "This sequence of compile-make requires a venv version of Python3"
5 echo " python -mvenv my-python3"
6 echo " activate ./my-python3/bin/activate"
7 echo ""
8 echo "You then need to:"
9 echo " pip3 install meson ninja"
10 echo ""
11 sleep 10
12fi
13
14source setup.bash
15
16if [ "x$GSDLHOME" = "x" ] ; then
17 # This extension needs to have the main GSDL setup.bash sourced
18
19 echo "Greenstone environment variable GSDLHOME not set."
20 echo "Have you sourced the main installation's setup file, e.g. setup.bash?"
21 exit -1
22fi
23
24
25source cascade-make/bin/script/test-setup.bash
26source cascade-make/lib/cascade-lib.bash
27
28# Guaranteed that GSDLOS has now been set
29
30if [ ! -e $GEXTVIDEO_INSTALLED ] ; then
31 echo "Creating $GEXTVIDEO_INSTALLED"
32 mkdir $GEXTVIDEO_INSTALLED
33fi
34
35dirlist="build-srcpack"
36
37if [ -e devel-srcpack ] ; then
38 dirlist="$dirlist devel-srcpack"
39fi
40
41for d in $dirlist ; do
42 echo "Running $d/CASCADE-MAKE-NG.sh $*"
43
44 (cd $d ; ./CASCADE-MAKE-NG.sh $*)
45
46 if [ $? != 0 ] ; then
47 echo "Error encountered running $d/CASCADE-MAKE-NG.sh"
48 exit 1
49 fi
50done
51
Note: See TracBrowser for help on using the repository browser.