comparison deploy/linux/deploy-deb.sh @ 711:87d423722656

Further deb packaging fixes, including undoing the last change, which appears to be not permitted
author Chris Cannam
date Wed, 12 Dec 2018 11:44:21 +0000
parents a13d89b87c2c
children 2b51235b3cb8
comparison
equal deleted inserted replaced
710:2d7be0113a85 711:87d423722656
21 fi 21 fi
22 22
23 set -eu 23 set -eu
24 24
25 program=EasyMercurial 25 program=EasyMercurial
26 package=easymercurial
26 depdir=deploy/linux 27 depdir=deploy/linux
27 28
28 targetdir="${program}_${version}_${arch}" 29 targetdir="${package}_${version}_${arch}"
29 30
30 echo "Target dir is $targetdir" 31 echo "Target dir is $targetdir"
31 32
32 if [ -d "$targetdir" ]; then 33 if [ -d "$targetdir" ]; then
33 echo "Target directory exists, not overwriting" 34 echo "Target directory exists, not overwriting"
38 39
39 mkdir "$targetdir/DEBIAN" 40 mkdir "$targetdir/DEBIAN"
40 41
41 cp "$depdir"/control "$targetdir"/DEBIAN/ 42 cp "$depdir"/control "$targetdir"/DEBIAN/
42 43
43 mkdir -p "$targetdir"/usr/bin "$targetdir"/usr/share/pixmaps "$targetdir"/usr/share/applications "$targetdir"/usr/share/doc/"$program" 44 mkdir -p "$targetdir"/usr/bin "$targetdir"/usr/share/pixmaps "$targetdir"/usr/share/applications "$targetdir"/usr/share/doc/"$package"
44 45
45 cp "$program" "$targetdir"/usr/bin/ 46 cp "$program" "$targetdir"/usr/bin/
46 47
47 cp images/icon/scalable/easyhg-icon.svg "$targetdir"/usr/share/pixmaps/ 48 cp images/icon/scalable/easyhg-icon.svg "$targetdir"/usr/share/pixmaps/
48 cp images/icon/128/easyhg-icon.png "$targetdir"/usr/share/pixmaps/ 49 cp images/icon/128/easyhg-icon.png "$targetdir"/usr/share/pixmaps/
49 cp deploy/linux/"$program".desktop "$targetdir"/usr/share/applications/ 50 cp deploy/linux/"$program".desktop "$targetdir"/usr/share/applications/"$package".desktop
50 cp README.txt "$targetdir"/usr/share/doc/"$program"/ 51 cp README.txt "$targetdir"/usr/share/doc/"$package"/
51 cp COPYING "$targetdir"/usr/share/doc/"$program"/copyright 52 cat > "$targetdir"/usr/share/doc/"$package"/copyright <<EOF
52 touch "$targetdir"/usr/share/doc/"$program"/changelog.Debian 53 EasyMercurial is free software; you can redistribute it and/or modify
53 gzip "$targetdir"/usr/share/doc/"$program"/changelog.Debian 54 it under the terms of the GNU General Public License as published by
55 the Free Software Foundation; either version 2 of the License, or (at
56 your option) any later version. See the file /usr/share/common-licenses/GPL-2
57 for more information.
58 EOF
59 touch "$targetdir"/usr/share/doc/"$package"/changelog.Debian
60 gzip -9 "$targetdir"/usr/share/doc/"$package"/changelog.Debian
54 61
55 perl -i -p -e "s/Architecture: .*/Architecture: $arch/" "$targetdir"/DEBIAN/control 62 perl -i -p -e "s/Architecture: .*/Architecture: $arch/" "$targetdir"/DEBIAN/control
56 63
57 deps=`bash "$depdir"/debian-dependencies.sh "$program"` 64 deps=`bash "$depdir"/debian-dependencies.sh "$program"`
58 65