Tools: Fix and update sanitize-deb script

This commit is contained in:
Vicki Pfau 2019-04-22 12:57:58 -07:00
parent f349ca93c6
commit f1986ffc46
1 changed files with 7 additions and 1 deletions

View File

@ -17,7 +17,7 @@ adddep() {
while [ $# -gt 0 ]; do while [ $# -gt 0 ]; do
DEB=$1 DEB=$1
dpkg-deb -R $DEB deb-temp 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 echo Found package $PKG
case $PKG in case $PKG in
@ -30,9 +30,12 @@ while [ $# -gt 0 ]; do
PKG=$BINARY-qt PKG=$BINARY-qt
rmdep libav rmdep libav
rmdep libedit rmdep libedit
rmdep libelf
rmdep libpng rmdep libpng
rmdep libzip rmdep libzip
rmdep libmagickwand rmdep libmagickwand
rmdep libsqlite3
rmdep libswresample
rmdep libswscale rmdep libswscale
rmdep zlib rmdep zlib
adddep lib$BINARY adddep lib$BINARY
@ -41,10 +44,13 @@ while [ $# -gt 0 ]; do
PKG=$BINARY-sdl PKG=$BINARY-sdl
rmdep libav rmdep libav
rmdep libedit rmdep libedit
rmdep libelf
rmdep libpng rmdep libpng
rmdep qt rmdep qt
rmdep libzip rmdep libzip
rmdep libmagickwand rmdep libmagickwand
rmdep libsqlite3
rmdep libswresample
rmdep libswscale rmdep libswscale
rmdep zlib rmdep zlib
adddep lib$BINARY adddep lib$BINARY