4 echo "usage: $0 <os> <typ>"
5 echo " os = centos | fedora | ubuntu | suse"
6 echo " typ = static | dynamic"
14 base="cinelerra-4.6.mod"
16 centos="centos-7.0-1406"
19 ubuntu="ubuntu-14.04.1"
23 echo "unknown os: $dir"
26 if [ ! -d "$path/$dir/$bld/$proj/$base" ]; then
27 echo "missing $bld/$proj/$base in $path/$dir"
33 if [ "$typ" = "static" ]; then
35 elif [ "$typ" != "dynamic" ]; then
36 echo "err: suffix must be [static | dynamic]"
40 cd "$path/$dir/$bld/$proj/$base"
41 tar -C bin -cJf "../$base-$os-$sfx.txz" .
42 rm -f "$path/$dir/$base-$os-$sfx.txz"
43 mv "../$base-$os-$sfx.txz" "$path/$dir/."