X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fbld_scripts%2Fbld_package.sh;h=da5dd7d4c80fb9777fc86b89d08946e4d8a5ba70;hb=9f344ea7acc2f3e077a4f736e2f99eaeff81d66b;hp=ff715bf49e582c2687e07e4b47e02ee58f912222;hpb=30bdb85eb33a8ee7ba675038a86c6be59c43d7bd;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/bld_scripts/bld_package.sh b/cinelerra-5.1/bld_scripts/bld_package.sh index ff715bf4..da5dd7d4 100755 --- a/cinelerra-5.1/bld_scripts/bld_package.sh +++ b/cinelerra-5.1/bld_scripts/bld_package.sh @@ -1,20 +1,39 @@ -#!/bin/bash +#!/bin/bash -x if [ $# -ne 2 ]; then echo "usage: $0 " - echo " os = centos | ubuntu | suse" - echo " typ = static | dynamic" + echo " os = centos | ubuntu | suse | debian" + echo " typ = sta | dyn" exit 1 fi dir="$1" +typ="$2" path="/home" bld="git-repo" proj="cinelerra5" base="cinelerra-5.1" -centos="centos-7.0-1406" +arch01="arch-20160601" +arch="arch-20161201" +cent01="centos-7.0-1406" +centos="centos-7.x-1611" +deb01="debian-8.4.0" +debian="debian-8.6.0" +fc23="fedora-23" +fc24="fedora-24" +fedora="fedora-25" +leap01="leap-42.1" +leap="leap-42.2" +mint01="mint-14.04.1" +mint="mint-18.1" +slk32="slk32-14.2" +slk64="slk64-14.2" suse="opensuse-13.2" +ub14="ub14.04.1" +ub15="ub15.10" +ub16="ub16.04" +ub1601="ub16.10" ubuntu="ubuntu-14.04.1" eval os="\${$dir}" @@ -22,21 +41,20 @@ if [ -z "$os" ]; then echo "unknown os: $dir" fi -if [ ! -d "$path/$dir/$bld/$proj/$base" ]; then - echo "missing $bld/$proj/$base in $path/$dir" +if [ ! -d "$path/$dir/$bld/$proj.$typ/$base" ]; then + echo "missing $bld/$proj.$typ/$base in $path/$dir" exit 1 fi -typ=$2 sfx=`uname -m`-`date +"%Y%m%d"` -if [ "$typ" = "static" ]; then +if [ "$typ" = "sta" ]; then sfx="$sfx-static" -elif [ "$typ" != "dynamic" ]; then - echo "err: suffix must be [static | dynamic]" +elif [ "$typ" != "dyn" ]; then + echo "err: suffix must be [sta | dyn]" exit 1 fi -cd "$path/$dir/$bld/$proj/$base" +cd "$path/$dir/$bld/$proj.$typ/$base" tar -C bin -cJf "../$base-$os-$sfx.txz" . rm -f "$path/$dir/$base-$os-$sfx.txz" mv "../$base-$os-$sfx.txz" "$path/$dir/."