From acd6d4442b882e33f7a67ff8c942b6576982527f Mon Sep 17 00:00:00 2001 From: Arnaldo Pereira Date: Fri, 11 Mar 2011 17:36:42 -0500 Subject: [PATCH] freetdm: fixes to mkrelease.sh --- libs/freetdm/mkrelease.sh | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) 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/ - -