From: Don Armstrong Date: Wed, 5 Apr 2006 00:45:48 +0000 (+0000) Subject: Add review from joey's svn repository X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=54f04d666bf4f48d5af151993f79f62a971661ae;p=bin.git Add review from joey's svn repository --- diff --git a/review b/review new file mode 100755 index 0000000..fc6078e --- /dev/null +++ b/review @@ -0,0 +1,33 @@ +#!/bin/sh +# +# Review changes file and the diffstat output for the diff file for a debian +# package. + +# Get the package name. +package=`head -n 1 debian/changelog | cut -f 1 -d ' '` + +# Get the package version. +version=`head -n 1 debian/changelog | cut -f 2 -d ' ' | perl -pe 's/\((.*?)\)/$1/; s/^\d+://;'` + +header () { + echo ">>> $1 <<<" +} + +( + if [ -d .svn ]; then + header svn + svn st + fi + header linda + linda ../${package}_${version}*.changes + header lintian + lintian ../${package}_${version}*.changes + header debdiff + debdiff ~/lib/debian/unstable/${package}_*.changes ../${package}_${version}*.changes + header diffstat + zcat ../${package}_${version}*.diff.gz | diffstat + header changes file + cat ../${package}_${version}*.changes + header package contents + debc ../${package}_${version}*.changes +) 2>&1 | $PAGER