rework keyframe hide popup, keyframe auto render, textbox set_selection wide text
[goodguy/history.git] / cinelerra-5.1 / bld_scripts / bld_package.sh
1 #!/bin/bash
2
3 if [ $# -ne 2 ]; then
4   echo "usage: $0 <os> <typ>"
5   echo "  os = centos | ubuntu | suse"
6   echo " typ = static | dynamic"
7   exit 1
8 fi
9
10 dir="$1"
11 path="/home"
12 bld="git-repo"
13 proj="cinelerra5"
14 base="cinelerra-5.1"
15
16 centos="centos-7.0-1406"
17 fedora="fedora-23"
18 leap="leap-42.1"
19 mint="mint-14.04.1"
20 suse="opensuse-13.2"
21 ub14="ubuntu-14.04.1"
22 ub15="ubuntu-15.10"
23 ubuntu="ubuntu-14.04.1"
24
25 eval os="\${$dir}"
26 if [ -z "$os" ]; then
27   echo "unknown os: $dir"
28 fi
29
30 if [ ! -d "$path/$dir/$bld/$proj/$base" ]; then
31   echo "missing $bld/$proj/$base in $path/$dir"
32   exit 1
33 fi
34
35 typ=$2
36 sfx=`uname -m`-`date +"%Y%m%d"`
37 if [ "$typ" = "static" ]; then
38   sfx="$sfx-static"
39 elif [ "$typ" != "dynamic" ]; then
40   echo "err: suffix must be [static | dynamic]"
41   exit 1
42 fi
43
44 cd "$path/$dir/$bld/$proj/$base"
45 tar -C bin -cJf "../$base-$os-$sfx.txz" .
46 rm -f "$path/$dir/$base-$os-$sfx.txz"
47 mv "../$base-$os-$sfx.txz" "$path/$dir/."
48