aboutsummaryrefslogtreecommitdiff
path: root/msd/src/build.sh
blob: 4f3b3d32b2174f849c5aaf16b13922a444a021f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash
# build the 3 msd objects using flext and its configuration


# build
cd ../msd
../../../grill/flext/build.sh pd gcc
cd ../msd2D
../../../grill/flext/build.sh pd gcc	
cd ../msd3D
../../../grill/flext/build.sh pd gcc
cd ../src

# move objects
UNAME=`uname -s`
if [ $UNAME = "Darwin" ]
then
	mv ../msd/pd-darwin/release-single/msd.pd_darwin ../msd/msd.pd_darwin
	mv ../msd2D/pd-darwin/release-single/msd2D.pd_darwin ../msd2D/msd2D.pd_darwin
	mv ../msd3D/pd-darwin/release-single/msd3D.pd_darwin ../msd3D/msd3D.pd_darwin
fi

if [ $UNAME = "Linux" ]
then
    cd ../msd
    ../../../grill/flext/build.sh pd gcc install
    cd ../msd2D
    ../../../grill/flext/build.sh pd gcc install
    cd ../msd3D
    ../../../grill/flext/build.sh pd gcc install
    cd ../src
fi