diff deploy/linux/deploy-deb.sh @ 864:d47aa2977d7a

Auto dependencies
author Chris Cannam
date Wed, 24 Sep 2014 12:15:58 +0100
parents 129b679734d0
children 8b63b44c3a91
line wrap: on
line diff
--- a/deploy/linux/deploy-deb.sh	Wed Sep 24 12:12:20 2014 +0100
+++ b/deploy/linux/deploy-deb.sh	Wed Sep 24 12:15:58 2014 +0100
@@ -46,6 +46,10 @@
 
 perl -i -p -e "s/Architecture: .*/Architecture: $arch/" "$targetdir"/DEBIAN/control
 
+deps=`bash "$depdir"/debian-dependencies.sh "$program"`
+
+perl -i -p -e "s/Depends: .*/$deps/" "$targetdir"/DEBIAN/control
+
 bash "$depdir"/fix-lintian-bits.sh "$targetdir"
 
 sudo dpkg-deb --build "$targetdir" && lintian "$targetdir".deb