| 
					
				 | 
			
			
				@@ -2,15 +2,49 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 # Debian stuff 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 # 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-# specific aliases 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+# specific aliases / functions 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 alias lintian="lintian --color=auto -IEm --pedantic" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+alias acp="apt-cache policy" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+alias acs="apt-cache search" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+alias acsh="apt-cache show" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+alias adg"sudo apt-get dist-upgrade" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+alias ag="sudo apt-get upgrade" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+alias agi="sudo apt-get install" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+alias au="sudo apt-get update" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+alias aug="sudo apt-get update && sudo apt-get upgrade" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+apt-rbdepends() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    grep-dctrl -F Build-Depends "$1" -s Package /var/lib/apt/lists/*_Sources 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+debdoc() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    cd /usr/share/doc/$1 && ls 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+dbug() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    if [[ $# -eq 1 ]]; then 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        case "$1" in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            [0-9]*) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                xdg-open "http://bugs.debian.org/$1" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ;; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            *@*) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                xdg-open "http://bugs.debian.org/cgi-bin/pkgreport.cgi?submitter=$1" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ;; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            *) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                xdg-open "http://bugs.debian.org/src:$*" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ;; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        esac 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    else 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        print "$0 needs one argument" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return 1 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    fi 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 # specific completions 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 # rdebsign is a trivial shell script wrapper around debsign 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 compdef rdebsign=scp 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 # building environements 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-cow-dist () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+cow-dist() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     if [ $# -lt 2 ]; then 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         echo "Error args." 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -58,30 +92,26 @@ if [ -d "${PBUILDER_PATH}" ]; then 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 fi 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 unset PBUILDER_PATH 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-# tools 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-apt-rbdepends () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    grep-dctrl -F Build-Depends "$1" -s Package /var/lib/apt/lists/*_Sources 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 pdebdiff() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     if [ ! -r debian/changelog ]; then 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         echo "ERR: can't read debian/changelog" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        exit 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     fi 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      egrep -v "^([[:space:]]+|$)" debian/changelog | \ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         sed 's/[^ ]* (\([^)]*\)).*/\1/' | \ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        head -n2|tr '\n' $IFS | \ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        head -n2 | tr '\n' $IFS | \ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         read v1 v2 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    if [ -z "$v1" -o -z "$v2" ]; then 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         echo "ERR: can't find version \$n and \$n-1 of the package"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        exit 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     fi 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     if [ ! -r debian/control ]; then 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         echo "ERR: can't read debian/control" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        exit 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     fi 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     egrep '^(Package|Architecture): ' debian/control | \ 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -96,14 +126,14 @@ pdebdiff() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 echo "*** DIFF ${pkg}_${v2} -> ${pkg}_${v1} ***" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 echo 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 debdiff ../${pkg}_${v2}_${arch}.deb ../${pkg}_${v1}_${arch}.deb 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            )|$PAGER 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ) | $PAGER 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     done 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 pdeblint() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     if [ ! -r debian/changelog ]; then 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         echo "ERR: can't read debian/changelog" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        exit 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     fi 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     v=$(egrep -v "^([[:space:]]+|$)" debian/changelog | \ 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -112,7 +142,7 @@ pdeblint() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     if [ ! -r debian/control ]; then 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         echo "ERR: can't read debian/control" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        exit 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     fi 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     pkg=$(grep '^Source: ' debian/control | sed 's/Source: //') 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -121,7 +151,7 @@ pdeblint() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     changes="../${pkg}_${v}_${arch}.changes" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     if [ ! -r "$changes" ]; then 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         echo "ERR: can't read changes file : ${changes}" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        exit 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     fi 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     lintian --color=auto -IEm --pedantic $changes $@ 
			 |