From: g0dil Date: Mon, 6 Apr 2009 11:01:47 +0000 (+0000) Subject: Add debian/install-depends.sh utility X-Git-Url: http://g0dil.de/git?a=commitdiff_plain;h=814706513dad132d331c8bcdc933fc283046cd0c;p=senf.git Add debian/install-depends.sh utility git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1181 270642c3-0616-0410-b53a-bc976706d245 --- diff --git a/debian/install-depends.sh b/debian/install-depends.sh new file mode 100755 index 0000000..ee1c875 --- /dev/null +++ b/debian/install-depends.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +if [ `whoami` != root ]; then + echo "Must be root." + exit 2 +fi + +base="`dirname "$0"`"; base="`cd "$base"; pwd`" + +aptitude update +aptitude install grep-dctrl + +packages="$(grep-dctrl -ns Build-Depends senf <"$base/control" \ + | tr ',\n\t' ' ' \ + | sed -e 's/([^)]*)//g' -e 's/ \+/ /g' -e 's/ $//')" + +aptitude install $packages