4 echo "usage: $0 <os> <typ>"
5 echo " os = centos | ubuntu | suse | debian"
6 echo " typ = static | dynamic"
16 centos="centos-7.0-1406"
24 ubuntu="ubuntu-14.04.1"
28 echo "unknown os: $dir"
31 if [ ! -d "$path/$dir/$bld/$proj/$base" ]; then
32 echo "missing $bld/$proj/$base in $path/$dir"
37 sfx=`uname -m`-`date +"%Y%m%d"`
38 if [ "$typ" = "static" ]; then
40 elif [ "$typ" != "dynamic" ]; then
41 echo "err: suffix must be [static | dynamic]"
45 cd "$path/$dir/$bld/$proj/$base"
46 tar -C bin -cJf "../$base-$os-$sfx.txz" .
47 rm -f "$path/$dir/$base-$os-$sfx.txz"
48 mv "../$base-$os-$sfx.txz" "$path/$dir/."