fixes for tiff/jbig, faststart for mov mp4
[goodguy/history.git] / cinelerra-5.1 / bld_scripts / bld_package.sh
1 #!/bin/bash -x
2
3 if [ $# -ne 2 ]; then
4   echo "usage: $0 <os> <typ>"
5   echo "  os = centos | ubuntu | suse | debian"
6   echo " typ = sta | dyn"
7   exit 1
8 fi
9
10 dir="$1"
11 typ="$2"
12 path="/home"
13 bld="git-repo"
14 proj="cinelerra5"
15 base="cinelerra-5.1"
16
17 arch01="arch-20160601"
18 arch="arch-20161201"
19 cent01="centos-7.0-1406"
20 centos="centos-7.x-1611"
21 deb01="debian-8.4.0"
22 deb03="debian-8.7.1"
23 debian="debian-8.6.0"
24 fc23="fedora-23"
25 fc24="fedora-24"
26 fedora="fedora-25"
27 leap01="leap-42.1"
28 leap="leap-42.2"
29 mint01="mint-14.04.1"
30 mint="mint-18.1"
31 slk32="slk32-14.2"
32 slk64="slk64-14.2"
33 suse="opensuse-13.2"
34 ub14="ub14.04.1"
35 ub15="ub15.10"
36 ub16="ub16.04"
37 ub17="ub17.04"
38 ub1601="ub16.10"
39 ubuntu="ubuntu-14.04.1"
40
41 eval os="\${$dir}"
42 if [ -z "$os" ]; then
43   echo "unknown os: $dir"
44 fi
45
46 if [ ! -d "$path/$dir/$bld/$proj.$typ/$base" ]; then
47   echo "missing $bld/$proj.$typ/$base in $path/$dir"
48   exit 1
49 fi
50
51 sfx=`uname -m`-`date +"%Y%m%d"`
52 if [ "$typ" = "sta" ]; then
53   sfx="$sfx-static"
54 elif [ "$typ" != "dyn" ]; then
55   echo "err: suffix must be [sta | dyn]"
56   exit 1
57 fi
58
59 cd "$path/$dir/$bld/$proj.$typ/$base"
60 tar -C bin -cJf "../$base-$os-$sfx.txz" .
61 rm -f "$path/$dir/$base-$os-$sfx.txz"
62 mv "../$base-$os-$sfx.txz" "$path/$dir/."
63