Mercurial > hg > easyhg
comparison deploy/linux/deploy-deb.sh @ 725:48e746f45bde
Include the kdiff3 executable
author | Chris Cannam |
---|---|
date | Mon, 17 Dec 2018 09:25:11 +0000 |
parents | 2b51235b3cb8 |
children | 1d0a0fce4021 |
comparison
equal
deleted
inserted
replaced
724:c59c17665162 | 725:48e746f45bde |
---|---|
21 fi | 21 fi |
22 | 22 |
23 set -eu | 23 set -eu |
24 | 24 |
25 program=EasyMercurial | 25 program=EasyMercurial |
26 kdiff=easyhg-kdiff3 | |
27 merge=easyhg-merge.sh | |
28 extdiff=easyhg-extdiff.sh | |
29 | |
30 programs="$program $kdiff $merge $extdiff" | |
31 | |
26 package=easymercurial | 32 package=easymercurial |
27 depdir=deploy/linux | 33 depdir=deploy/linux |
28 | 34 |
29 targetdir="${package}_${version}_${arch}" | 35 targetdir="${package}_${version}_${arch}" |
30 | 36 |
33 if [ -d "$targetdir" ]; then | 39 if [ -d "$targetdir" ]; then |
34 echo "Target directory exists, not overwriting" | 40 echo "Target directory exists, not overwriting" |
35 exit | 41 exit |
36 fi | 42 fi |
37 | 43 |
44 for p in $programs; do | |
45 if [ ! -x "$p" ]; then | |
46 echo "Failed to find executable ./$p, please build and check" | |
47 exit 2 | |
48 fi | |
49 done | |
50 | |
38 mkdir "$targetdir" | 51 mkdir "$targetdir" |
39 | 52 |
40 mkdir "$targetdir/DEBIAN" | 53 mkdir "$targetdir/DEBIAN" |
41 | 54 |
42 cp "$depdir"/control "$targetdir"/DEBIAN/ | 55 cp "$depdir"/control "$targetdir"/DEBIAN/ |
43 | 56 |
44 mkdir -p "$targetdir"/usr/bin "$targetdir"/usr/share/pixmaps "$targetdir"/usr/share/applications "$targetdir"/usr/share/doc/"$package" | 57 mkdir -p "$targetdir"/usr/bin "$targetdir"/usr/share/pixmaps "$targetdir"/usr/share/applications "$targetdir"/usr/share/doc/"$package" |
45 | 58 |
46 cp "$program" "$targetdir"/usr/bin/ | 59 cp $programs "$targetdir"/usr/bin/ |
47 | 60 |
48 cp images/icon/scalable/easyhg-icon.svg "$targetdir"/usr/share/pixmaps/ | 61 cp images/icon/scalable/easyhg-icon.svg "$targetdir"/usr/share/pixmaps/ |
49 cp images/icon/128/easyhg-icon.png "$targetdir"/usr/share/pixmaps/ | 62 cp images/icon/128/easyhg-icon.png "$targetdir"/usr/share/pixmaps/ |
50 cp deploy/linux/"$program".desktop "$targetdir"/usr/share/applications/"$package".desktop | 63 cp deploy/linux/"$program".desktop "$targetdir"/usr/share/applications/"$package".desktop |
51 cp README.txt "$targetdir"/usr/share/doc/"$package"/ | 64 cp README.txt "$targetdir"/usr/share/doc/"$package"/ |