set -x LIB=$1 DIR=$2 rm -f $LIB rm -rf $LIB*/ for f in *.tar.*; do tar xf $f; done for f in *.tgz; do tar xf $f; done ln -s $LIB*/ $LIB