diff --git a/libs/freetdm/mkrelease.sh b/libs/freetdm/mkrelease.sh index 45bc1cf868..4b9a18bf9f 100755 --- a/libs/freetdm/mkrelease.sh +++ b/libs/freetdm/mkrelease.sh @@ -133,14 +133,15 @@ if [ -d compat_reports ]; then rm -rf ./compat_reports fi -find $INSTALLPREFIX/ -name .libs -exec rm -rf {} \; -find $INSTALLPREFIX/ -name .deps -exec rm -rf {} \; -find $INSTALLPREFIX/ -name *.so -exec rm -rf {} \; -find $INSTALLPREFIX/ -name *.lo -exec rm -rf {} \; - cp -r ./* $INSTALLPREFIX/bin-releases/$major/$release cp -r ./.libs $INSTALLPREFIX/bin-releases/$major/$release +find $INSTALLPREFIX/$release -name .libs -exec rm -rf {} \; +find $INSTALLPREFIX/$release -name .deps -exec rm -rf {} \; +find $INSTALLPREFIX/$release -name *.so -exec rm -rf {} \; +find $INSTALLPREFIX/$release -name *.lo -exec rm -rf {} \; +rm -rf $INSTALLPREFIX/$release/{$LIBSNG_ISDN_DIR,$LIBSNG_SS7_DIR,*.tgz} + # clean the source tree rm -rf $LIBSNG_ISDN_DIR $LIBSNG_SS7_DIR make clean