[Trisquel-devel] Rev 52: Improved build-depend handling in file:///home/bzr/package-helpers/trunk/

Ruben Rodriguez ruben at trisquel.info
Sun Jun 10 04:35:45 CEST 2012


At file:///home/bzr/package-helpers/trunk/

------------------------------------------------------------
revno: 52
revision-id: ruben en trisquel.info-20120610023451-gnp6xhgiu6x08048
parent: ruben en trisquel.info-20120609150236-55w30frhkfycctru
committer: Ruben Rodriguez <ruben en trisquel.info>
branch nick: trunk
timestamp: Sun 2012-06-10 04:34:51 +0200
message:
  Improved build-depend handling
------------ pr�xima parte ------------
=== modified file 'helpers/oneiric/config'
--- a/helpers/oneiric/config	2012-05-30 22:13:23 +0000
+++ b/helpers/oneiric/config	2012-06-10 02:34:51 +0000
@@ -63,7 +63,8 @@
 EOF
 
 replace(){
-find $3 -type f |grep -v changelog |grep -v copyright | xargs sed -i s^"$1"^"$2"^g
+#find $3 -type f |grep -v changelog |grep -v copyright | xargs sed -i s^"$1"^"$2"^g
+find $3 -type f -not -iregex '.*changelog.*' -not -iregex '.*copyright.*' -execdir sed --follow-symlinks -i s^"$1"^"$2"^g {} \;
 }
 
 changelog(){
@@ -99,7 +100,7 @@
     apt-get source linux-libc-dev --download-only
     dpkg-source -x --skip-patches *.dsc source
 else
-    #apt-get --force-yes -y build-dep $PACKAGE
+    [ 1$LOCALDEPENDS = 1true ] || apt-get --force-yes -y build-dep $PACKAGE
     apt-get source $PACKAGE --download-only
     dpkg-source -x --skip-patches *.dsc source
 fi
@@ -122,8 +123,6 @@
     DEPENDS=$(sed -n '/Build-Dep/,/^[a-zA-W0-9]/ p' debian/control | head -n -1 | sed 's/.*://; s/(.*)//; s/,//g' |xargs echo -n)
     echo Installing Build-Depends: $DEPENDS
     apt-get --force-yes -y install $DEPENDS
-else
-    apt-get -y --force-yes build-dep $PACKAGE
 fi
 
 PROCESSORS=1



More information about the Trisquel-devel mailing list