comparison deploy/linux/deploy-deb.sh @ 300:7dd6795af5e6

Start updating build stuff for 1.5
author Chris Cannam
date Thu, 25 May 2017 14:17:53 +0100
parents 120723f7698b
children
comparison
equal deleted inserted replaced
299:c9be1a6f7d74 300:7dd6795af5e6
1 #!/bin/bash 1 #!/bin/bash
2 # 2 #
3 # Run this from the build root 3 # Run this from the build root (with sudo, I think)
4 4
5 usage() { 5 usage() {
6 echo 6 echo
7 echo "Usage:" 7 echo "Usage:"
8 echo 8 echo
17 arch="$2" 17 arch="$2"
18 18
19 if [ -z "$version" ] || [ -z "$arch" ]; then 19 if [ -z "$version" ] || [ -z "$arch" ]; then
20 usage 20 usage
21 fi 21 fi
22
23 set -eu
22 24
23 program=sonic-annotator 25 program=sonic-annotator
24 depdir=deploy/linux 26 depdir=deploy/linux
25 27
26 targetdir="${program}_${version}_${arch}" 28 targetdir="${program}_${version}_${arch}"
52 54
53 perl -i -p -e "s/Version: .*/Version: $control_ver/" "$targetdir"/DEBIAN/control 55 perl -i -p -e "s/Version: .*/Version: $control_ver/" "$targetdir"/DEBIAN/control
54 56
55 bash "$depdir"/fix-lintian-bits.sh "$targetdir" 57 bash "$depdir"/fix-lintian-bits.sh "$targetdir"
56 58
57 sudo dpkg-deb --build "$targetdir" && lintian "$targetdir".deb 59 dpkg-deb --build "$targetdir" && lintian "$targetdir".deb
58 60