Merge CV, ver=5.1; ops/methods from HV, and interface from CV where possible
[goodguy/history.git] / cinelerra-5.1 / build / bld_dynamic.sh
1 #!/bin/bash
2
3 dir="$1"
4 path="/home"
5 bld="google_code"
6 proj="cinelerra"
7 base="cinelerra-4.6.mod"
8
9 if [ ! -d "$path/$dir/$bld" ]; then
10   echo "$bld missing in /$path/$dir"
11   exit 1
12 fi
13
14 cd "$path/$dir/$bld"
15 rm -rf "$proj"
16 git clone "https://code.google.com/p/$proj"
17 if [ $? -ne 0 ]; then
18   echo "git clone $bld/$proj/ failed"
19   exit 1
20 fi
21
22 cd "$proj/$base"
23 if [ "$dir" = "ubuntu" ]; then
24  echo "CFLAGS += -DPNG_SKIP_SETJMP_CHECK=1" >> global_config
25 fi
26
27 STATIC_LIBRARIES=0 ./configure >& log
28 make >> log 2>&1
29 make install >> log 2>&1
30
31 echo "finished: scanning log for ***"
32 grep -a "\*\*\*" log
33