rework keyframe hide popup, keyframe auto render, textbox set_selection wide text
[goodguy/history.git] / cinelerra-5.1 / bld_scripts / bld_dynamic.sh
1 #!/bin/bash
2
3 dir="$1"
4 shift
5 path="/home"
6 bld="git-repo"
7 proj="cinelerra5"
8 base="cinelerra-5.1"
9
10 if [ ! -d "$path/$dir/$bld" ]; then
11   echo "$bld missing in $path/$dir"
12   exit 1
13 fi
14
15 cd "$path/$dir/$bld"
16 rm -rf "$proj"
17 git clone "git://git.cinelerra-cv.org/goodguy/cinelerra.git" "$proj"
18 #rsh host tar -C /mnt0 -cf - cinelerra5 | tar -xf -
19 if [ $? -ne 0 ]; then
20   echo "git clone $proj failed"
21   exit 1
22 fi
23
24 cd "$proj/$base"
25 case "$dir" in
26   "ubuntu" | "mint" | "ub14" | "ub15")
27      echo "CFLAGS += -DPNG_SKIP_SETJMP_CHECK=1" >> global_config ;;
28   "centos")
29      echo "CFLAGS += -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS" >> global_config
30      echo "EXTRA_LIBS += -lnuma" >> global_config ;;
31   "suse" | "leap")
32      echo "EXTRA_LIBS += -lnuma" >> global_config ;;
33   "fedora")
34      echo "EXTRA_LIBS += -lnuma" >> global_config ;;
35 esac
36
37 STATIC_LIBRARIES=0 ./configure >& log
38 make >> log 2>&1 $@
39 make install >> log 2>&1
40
41 echo "finished: scanning log for ***"
42 grep -ai "\*\*\*.*error" log
43