From 4fcaad3cc22fcbefa85987502ece8b48628c7110 Mon Sep 17 00:00:00 2001 From: Siggi Langauf Date: Tue, 30 Oct 2001 15:30:49 +0000 Subject: added changes up to 0.9.2-3 CVS patchset: 916 CVS date: 2001/10/30 15:30:49 --- debian/shlibdeps.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'debian/shlibdeps.sh') diff --git a/debian/shlibdeps.sh b/debian/shlibdeps.sh index c602cea8c..0f07ca3a8 100755 --- a/debian/shlibdeps.sh +++ b/debian/shlibdeps.sh @@ -27,5 +27,22 @@ for file in `echo $OPTIONAL $RECOMMENDED`; do REQUIRED=`echo "$REQUIRED" | grep -v $file` done + +# remove nonexisting files, warn in that case +for file in $RECOMMENDED; do + if test ! -f "$file"; then + echo "WARNING: non-existing file \"$file\" in RECOMMENDED list" + RECOMMENDED=`echo "$var" | grep -v $file` + fi +done +for file in $OPTIONAL; do + if test ! -f "$file"; then + echo "WARNING: non-existing file \"$file\" in OPTIONAL list" + OPTIONAL=`echo "$var" | grep -v $file` + fi +done + + + dpkg-shlibdeps -Tdebian/$1.substvars \ $REQUIRED -dRecommends $RECOMMENDED -dSuggests $OPTIONAL -- cgit v1.2.3