mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-05-11 08:51:29 +00:00
Add reverse-build-depends script.
This commit is contained in:
parent
74efab3805
commit
d6ba86bf51
17
debian/changelog
vendored
17
debian/changelog
vendored
@ -1,15 +1,16 @@
|
|||||||
ubuntu-dev-tools (0.25) UNRELEASED; urgency=low
|
ubuntu-dev-tools (0.25) UNRELEASED; urgency=low
|
||||||
|
|
||||||
* what-patch:
|
* what-patch:
|
||||||
- Print a list of files that have been modified outside debian/
|
- Print a list of files that have been modified outside debian/.
|
||||||
- Add -h and -q options
|
- Add -h and -q options.
|
||||||
- Add proper exit values
|
- Add proper exit values.
|
||||||
* debian/control:
|
* debian/control:
|
||||||
- Bump standards version to 3.7.3
|
- Bump standards version to 3.7.3.
|
||||||
- Move python-central to Build-Depends-Indep
|
- Move python-central to Build-Depends-Indep.
|
||||||
- Rename XS-Vcs-{Bzr,Browser} fields to Vcs-{Bzr,Browser}
|
- Rename XS-Vcs-{Bzr,Browser} fields to Vcs-{Bzr,Browser}.
|
||||||
- Bump minimum cdbs version to 0.4.49
|
- Bump minimum cdbs version to 0.4.49.
|
||||||
* Add Albert Damen to the Authors and Copyright Holders
|
* Add Albert Damen to the Authors and Copyright Holders.
|
||||||
|
* Add reverse-build-depends script.
|
||||||
|
|
||||||
-- Siegfried-Angel Gevatter Pujals (RainCT) <rainct@ubuntu.com> Sun, 06 Jan 2008 12:02:54 +0100
|
-- Siegfried-Angel Gevatter Pujals (RainCT) <rainct@ubuntu.com> Sun, 06 Jan 2008 12:02:54 +0100
|
||||||
|
|
||||||
|
40
reverse-build-depends
Executable file
40
reverse-build-depends
Executable file
@ -0,0 +1,40 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# Copyright (C) 2007 Siegfried-A. Gevatter <siggi.gevatter@gmail.com>
|
||||||
|
# Based upon a short script by an unknown author
|
||||||
|
# License: GPLv2+
|
||||||
|
#
|
||||||
|
# This script is used to find the reverse build dependencies
|
||||||
|
# that a package has.
|
||||||
|
|
||||||
|
usage() {
|
||||||
|
echo "Usage: $0 [-c] <package name>"
|
||||||
|
}
|
||||||
|
|
||||||
|
if [ "$1" = '-c' ]
|
||||||
|
then
|
||||||
|
count=1
|
||||||
|
shift
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ $# -ne 1 ];
|
||||||
|
then
|
||||||
|
usage
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$1" = '-h' ] || [ "$1" = '--help' ]
|
||||||
|
then
|
||||||
|
usage
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
result=$(
|
||||||
|
grep-dctrl -sPackage -F Build-Depends,Build-Depends-Indep $1 \
|
||||||
|
/var/lib/apt/lists/*Sources | cut -d ' ' -f 2)
|
||||||
|
|
||||||
|
if [ -z $count ]
|
||||||
|
then
|
||||||
|
echo $result
|
||||||
|
else
|
||||||
|
echo $result | wc -w
|
||||||
|
fi
|
Loading…
x
Reference in New Issue
Block a user