]> git.donarmstrong.com Git - bin.git/blob - review
add reset usb bus command
[bin.git] / review
1 #!/bin/sh
2 #
3 # Review changes file and the diffstat output for the diff file for a debian
4 # package.
5
6 # Get the package name.
7 package=`head -n 1 debian/changelog | cut -f 1 -d ' '`
8
9 # Get the package version.
10 version=`head -n 1 debian/changelog | cut -f 2 -d ' ' | perl -pe 's/\((.*?)\)/$1/; s/^\d+://;'`
11
12 header () {
13         echo ">>> $1 <<<"
14 }
15
16 (
17         if [ -d .svn ]; then
18                 header svn
19                 svn st
20         fi
21         header linda
22         linda ../${package}_${version}*.changes
23         header lintian
24         lintian ../${package}_${version}*.changes
25         header debdiff
26         debdiff ~/lib/debian/unstable/${package}_*.changes ../${package}_${version}*.changes 
27         header diffstat
28         zcat ../${package}_${version}*.diff.gz | diffstat
29         header changes file
30         cat ../${package}_${version}*.changes
31         header package contents
32         debc ../${package}_${version}*.changes
33 ) 2>&1 | $PAGER