Mercurial > hg > sonic-visualiser
comparison deploy/linux/deploy-deb.sh @ 2008:55d9bbf1fe45 zoom
Merge from default branch
author | Chris Cannam |
---|---|
date | Mon, 17 Sep 2018 14:05:41 +0100 |
parents | 9b59deb4a854 |
children | c377ab5c1447 |
comparison
equal
deleted
inserted
replaced
2007:246bdf94ef7b | 2008:55d9bbf1fe45 |
---|---|
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 |
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 | 22 |
23 set -eu | |
24 | |
23 program=sonic-visualiser | 25 program=sonic-visualiser |
26 checker=vamp-plugin-load-checker | |
27 piper=piper-vamp-simple-server | |
24 depdir=deploy/linux | 28 depdir=deploy/linux |
25 | 29 |
26 targetdir="${program}_${version}_${arch}" | 30 targetdir="${program}_${version}_${arch}" |
27 | 31 |
28 echo "Target dir is $targetdir" | 32 echo "Target dir is $targetdir" |
36 | 40 |
37 cp -r "$depdir"/deb-skeleton/* "$targetdir"/ | 41 cp -r "$depdir"/deb-skeleton/* "$targetdir"/ |
38 | 42 |
39 mkdir -p "$targetdir"/usr/bin "$targetdir"/usr/share/pixmaps | 43 mkdir -p "$targetdir"/usr/bin "$targetdir"/usr/share/pixmaps |
40 | 44 |
41 cp "$program" "$targetdir"/usr/bin/ | 45 cp "$program" "$checker" "$piper" "$targetdir"/usr/bin/ |
42 | 46 |
43 cp icons/sv-icon*.svg "$targetdir"/usr/share/pixmaps/ | 47 cp icons/sv-icon*.svg "$targetdir"/usr/share/pixmaps/ |
44 cp "$program".desktop "$targetdir"/usr/share/applications/ | 48 cp "$program".desktop "$targetdir"/usr/share/applications/ |
45 cp README "$targetdir"/usr/share/doc/"$program"/ | 49 cp README "$targetdir"/usr/share/doc/"$program"/ |
46 | 50 |
54 | 58 |
55 perl -i -p -e "s/Version: .*/Version: $control_ver/" "$targetdir"/DEBIAN/control | 59 perl -i -p -e "s/Version: .*/Version: $control_ver/" "$targetdir"/DEBIAN/control |
56 | 60 |
57 bash "$depdir"/fix-lintian-bits.sh "$targetdir" | 61 bash "$depdir"/fix-lintian-bits.sh "$targetdir" |
58 | 62 |
59 sudo dpkg-deb --build "$targetdir" && lintian "$targetdir".deb | 63 dpkg-deb --build "$targetdir" && lintian "$targetdir".deb |
60 | 64 |