[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

sgrep dependancy checker



in case anyone's curious about what the dependancy checker looks like,
here it is:

---cut here---
#! /bin/sh

DEBIAN_ROOT_DIR="/debian"
PACKAGE_FILES="$DEBIAN_ROOT_DIR/bo/Packages"

DEV_SEARCH='"-dev" or "-dbg" or "-pic"'

DEVPACKAGES=$( cat $PACKAGE_FILES | \
    sgrep "DEB_PKG containing (DEB_PACKAGE containing ($DEV_SEARCH))" |\
	grep "Package: " | sed -e 's/Package: //g'  )

OTHER="wg15-locale libpthread0 xslib splay boot-floppies"

PKGS="$DEVPACKAGES $OTHER"

# no package is ever likely to be called XYZZYXYZZYXYZZY. slightly
# simpler than stripping off the initial "or " after constructing the
# search string.
SG_SEARCH="\"XYZZYXYZZYXYZZY\""

# build sgrep search string
for PACKAGE in $PKGS ; do
	SG_SEARCH="$SG_SEARCH or \"$PACKAGE\" "
done

echo
    cat $PACKAGE_FILES | \
    sgrep "DEB_PKG containing (DEB_DEPENDS containing ($SG_SEARCH))" | \
    sgrep "DEB_PKG containing (DEB_PACKAGE not containing ($SG_SEARCH))" | \
    grep "Package: \|Depends: \|^$"

---cut here---


--
craig sanders


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: