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"
40 ubuntu="ubuntu-14.04.1"
44 echo "unknown os: $dir"
47 if [ ! -d "$path/$dir/$bld/$proj.$typ/$base" ]; then
48 echo "missing $bld/$proj.$typ/$base in $path/$dir"
52 sfx=`uname -m`-`date +"%Y%m%d"`
53 if [ "$typ" = "sta" ]; then
55 elif [ "$typ" != "dyn" ]; then
56 echo "err: suffix must be [sta | dyn]"
60 cd "$path/$dir/$bld/$proj.$typ/$base"
61 tar -C bin -cJf "../$base-$os-$sfx.txz" .
62 rm -f "$path/$dir/$base-$os-$sfx.txz"
63 mv "../$base-$os-$sfx.txz" "$path/$dir/."