aboutsummaryrefslogtreecommitdiff
path: root/msd/src/build.sh
blob: 869e17c8bf94098d0f7e6ce945e2dc59be0cde52 (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 ../msd/msd2D.pd_darwin
	mv ../msd3D/pd-darwin/release-single/msd3D.pd_darwin ../msd/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