source: gs2-extensions/echoprint/trunk/src/src/CASCADE-MAKE.sh@ 28348

Last change on this file since 28348 was 28348, checked in by davidb, 11 years ago

Logic added to compile (optionally) client and server

  • Property svn:executable set to *
File size: 680 bytes
Line 
1#!/bin/bash
2
3source ../cascade-make/lib/cascade-lib.bash GEXT_ECHOPRINT .. $*
4
5
6arg1=$1 && shift
7
8packlist=
9if [ "x$arg1" != "x" ] ; then
10
11 if [ $arg1 == "client" -o $arg1 == "all" ] ; then
12 packlist="$packlist ECHOPRINT"
13 elif [ $arg1 = "server" -o $arg1 = "all" ] ; then
14 packlist="$packlist ECHOPRINT-SERVER"
15 else
16 echo "Warning: Unrecognized command '$1'" >&2
17 fi
18
19else
20 echo "Usage: ./CASCADE-MADE.sh client|server|all [install|clean|distclean|tarclean]" >&2
21fi
22
23
24for d in $packlist ; do
25 echo " Running CASCADE-MAKE/$d.sh"
26
27 ./CASCADE-MAKE/$d.sh $*
28
29 if [ $? != 0 ] ; then
30 echo "Error encountered running CASCADE-MAKE/$d.sh"
31 exit 1
32 fi
33done
Note: See TracBrowser for help on using the repository browser.