From f1986ffc46e89ec7f09307a30561e9d8073b40ba Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Mon, 22 Apr 2019 12:57:58 -0700 Subject: [PATCH] Tools: Fix and update sanitize-deb script --- tools/sanitize-deb.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tools/sanitize-deb.sh b/tools/sanitize-deb.sh index cf1fee221..d400f0489 100755 --- a/tools/sanitize-deb.sh +++ b/tools/sanitize-deb.sh @@ -17,7 +17,7 @@ adddep() { while [ $# -gt 0 ]; do DEB=$1 dpkg-deb -R $DEB deb-temp - PKG=`head -n1 deb-temp/DEBIAN/control | cut -f2 -d ' '` + PKG=`grep Package deb-temp/DEBIAN/control | cut -f2 -d ' '` echo Found package $PKG case $PKG in @@ -30,9 +30,12 @@ while [ $# -gt 0 ]; do PKG=$BINARY-qt rmdep libav rmdep libedit + rmdep libelf rmdep libpng rmdep libzip rmdep libmagickwand + rmdep libsqlite3 + rmdep libswresample rmdep libswscale rmdep zlib adddep lib$BINARY @@ -41,10 +44,13 @@ while [ $# -gt 0 ]; do PKG=$BINARY-sdl rmdep libav rmdep libedit + rmdep libelf rmdep libpng rmdep qt rmdep libzip rmdep libmagickwand + rmdep libsqlite3 + rmdep libswresample rmdep libswscale rmdep zlib adddep lib$BINARY