diff --git a/libs/freetdm/mkrelease.sh b/libs/freetdm/mkrelease.sh index 46d4fbd93f..b079158541 100755 --- a/libs/freetdm/mkrelease.sh +++ b/libs/freetdm/mkrelease.sh @@ -125,6 +125,12 @@ echo "Creating $release ($major.$minor.$micro) at $INSTALLPREFIX/$release (direc mkdir -p $INSTALLPREFIX/$release $INSTALLPREFIX/bin-releases/$major/$release +cp -r ./* $INSTALLPREFIX/bin-releases/$major/$release +cp -r ./.libs $INSTALLPREFIX/bin-releases/$major/$release + +make clean +make mod_freetdm-clean + cp -r ./* $INSTALLPREFIX/$release # copy ABI compatibility reports to release @@ -132,20 +138,7 @@ if [ -d compat_reports ]; then mv ./compat_reports $INSTALLPREFIX/$release fi -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} rm -rf $INSTALLPREFIX/bin-releases/$major/$release/{$LIBSNG_ISDN_DIR,$LIBSNG_SS7_DIR,*.tgz} -# clean the source tree -make clean -make mod_freetdm-clean - tar -C $INSTALLPREFIX -czf $INSTALLPREFIX/$release.tar.gz $release/ - -