4 echo "usage: $0 <os> <typ>"
5 echo " os = centos | ubuntu | suse | debian"
6 echo " typ = sta | dyn"
17 arch01="arch-20160601"
19 cent01="centos-7.0-1406"
20 centos="centos-7.x-1611"
39 ubuntu="ubuntu-14.04.1"
43 echo "unknown os: $dir"
46 if [ ! -d "$path/$dir/$bld/$proj.$typ/$base" ]; then
47 echo "missing $bld/$proj.$typ/$base in $path/$dir"
51 sfx=`uname -m`-`date +"%Y%m%d"`
52 if [ "$typ" = "sta" ]; then
54 elif [ "$typ" != "dyn" ]; then
55 echo "err: suffix must be [sta | dyn]"
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/."