[med-svn] r9611 - trunk/packages/mgltools/mgltools-external-get-orig-source

Thorsten Alteholz alteholz-guest at alioth.debian.org
Tue Feb 7 16:57:17 UTC 2012


Author: alteholz-guest
Date: 2012-02-07 16:57:17 +0000 (Tue, 07 Feb 2012)
New Revision: 9611

Modified:
   trunk/packages/mgltools/mgltools-external-get-orig-source/get-orig-source
Log:
remove some unneeded files like dlls from orig.tar

Modified: trunk/packages/mgltools/mgltools-external-get-orig-source/get-orig-source
===================================================================
--- trunk/packages/mgltools/mgltools-external-get-orig-source/get-orig-source	2012-02-07 15:55:35 UTC (rev 9610)
+++ trunk/packages/mgltools/mgltools-external-get-orig-source/get-orig-source	2012-02-07 16:57:17 UTC (rev 9611)
@@ -52,11 +52,12 @@
 version=`echo $branch|sed "s/rc-//g"|tr '-' '.'`
 
 DATE=`date +"%Y%m%d"`
+DATE="20120206"
 if [ -f $MGLTOOLSCVS/build-for-date ]; then
   DATE=`cat $MGLTOOLSCVS/build-for-date`
 fi
-origFilename=${DEBPACKAGE}_${version}${rcversion}+cvs.${DATE}.orig.tar.gz
-origDirname=${DEBPACKAGE}-${version}${rcversion}+cvs.${DATE}
+origFilename=${DEBPACKAGE}_${version}${rcversion}~cvs.${DATE}.orig.tar.gz
+origDirname=${DEBPACKAGE}-${version}${rcversion}~cvs.${DATE}
 
 echo "I: Filename of origFile: $origFilename"
 
@@ -78,9 +79,16 @@
   rm -r "$origDirname"
 fi
 
+echo "I: remove some files in '$package' "
+cd $package
+echo "I: ... *.dll "
+find . -name *.dll -a -type f| xargs -r rm -rf
+cd ..
+
 echo "I: Temporarily renaming and taring $package "
 echo " --> $MGLTOOLSCVS/$TARDIR/$origFilename"
 mv "$package" "$origDirname"
+
 echo -n "I: Number of files in package: "
 GZIP=-9 tar --exclude CVS -czvf "$TARDIR/$origFilename" "$origDirname" | wc -l
 mv "$origDirname" "$package"




More information about the debian-med-commit mailing list