Author: tille
Date: 2011-11-20 20:40:58 +0000 (Sun, 20 Nov 2011)
New Revision: 8621

Added:
   trunk/packages/neobio/trunk/debian/get-orig-source
Modified:
   trunk/packages/neobio/trunk/debian/rules
Log:
Having a separate shell script simplifies writing the get-orig-source code; 
Removing *.class files really ( find '-o' just needs one true condition, second 
is not evaluated); Removing documentation without source and license


Added: trunk/packages/neobio/trunk/debian/get-orig-source
===================================================================
--- trunk/packages/neobio/trunk/debian/get-orig-source                          
(rev 0)
+++ trunk/packages/neobio/trunk/debian/get-orig-source  2011-11-20 20:40:58 UTC 
(rev 8621)
@@ -0,0 +1,23 @@
+#!/bin/sh
+set -x
+VERSION=`dpkg-parsechangelog | grep '^Version:' | sed 's/^Version: 
\(.*\)-1/\1/'`
+ZIPF=neobio_${VERSION}.zip
+REPACKED=neobio-${VERSION}
+TARBALLS=`pwd`/../tarballs
+
+mkdir -p ${TARBALLS}
+cd ${TARBALLS}
+[ -f ${ZIPF} ] || wget -q -O ${ZIPF}  
http://sourceforge.net/projects/neobio/files/neobio/pre-alpha/neobio.zip
+rm -rf ${REPACKED}
+mkdir  ${REPACKED}
+cd     ${REPACKED}
+unzip -q ../${ZIPF}
+find . -name "*.class"   -delete
+find . -name "Thumbs.db" -delete
+find . -name "*.ps"      -delete
+find . -name "*.pdf"     -delete
+find . -empty -type d -delete
+cd ..
+GZIP="--best --no-name" tar -czf neobio_${VERSION}.orig.tar.gz ${REPACKED}
+rm -rf ${REPACKED}
+cd ..

Modified: trunk/packages/neobio/trunk/debian/rules
===================================================================
--- trunk/packages/neobio/trunk/debian/rules    2011-11-20 19:30:27 UTC (rev 
8620)
+++ trunk/packages/neobio/trunk/debian/rules    2011-11-20 20:40:58 UTC (rev 
8621)
@@ -27,17 +27,4 @@
 TARBALLS := $(CURDIR)/../tarballs
 
 get-orig-source:
-       [ -f $(ZIPF) ] || wget -q -O $(ZIPF)  
http://sourceforge.net/projects/neobio/files/neobio/pre-alpha/neobio.zip
-       rm -rf $(SRC_TMP)/$(REPACKED)
-       mkdir  $(SRC_TMP)/$(REPACKED)
-       cd     $(SRC_TMP)/$(REPACKED) && \
-         unzip -q $(ZIPF) && \
-         find . -name "*.class" -o -name "Thumbs.db" -delete && \
-         find . -empty -type d -delete
-       [ -d $(TARBALLS) ] || mkdir $(TARBALLS)
-       cd $(SRC_TMP) && GZIP="--best --no-name" tar -czf 
$(TARBALLS)/neobio_$(VERSION).orig.tar.gz $(REPACKED)
-       rm -rf $(SRC_TMP)
-
-# make -f debian/rules get-orig-source
-# debuild or pdebuild
-
+       . debian/get-orig-source


_______________________________________________
debian-med-commit mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-med-commit

Reply via email to