Mercurial > hg > easyhg
annotate deploy/osx/copy-kdiff3.sh @ 736:3e6995d01c15
Update server certificate fingerprints
author | Chris Cannam |
---|---|
date | Wed, 14 Aug 2019 14:52:50 +0100 |
parents | 2cb03c4665aa |
children |
rev | line source |
---|---|
Chris@731 | 1 #!/bin/bash |
Chris@731 | 2 |
Chris@731 | 3 app="$1" |
Chris@731 | 4 if [ -z "$app" ]; then |
Chris@731 | 5 echo "Usage: $0 <appname>" |
Chris@731 | 6 echo "Provide appname without the .app extension, please" |
Chris@731 | 7 exit 2 |
Chris@731 | 8 fi |
Chris@731 | 9 |
Chris@731 | 10 set -eu |
Chris@731 | 11 |
Chris@731 | 12 qtdir=$(grep "Command:" Makefile | head -1 | awk '{ print $3; }' | sed s,/bin/.*,,) |
Chris@731 | 13 |
Chris@731 | 14 if [ ! -d "$qtdir" ]; then |
Chris@731 | 15 echo "Failed to discover Qt installation directory from Makefile, exiting" |
Chris@731 | 16 exit 2 |
Chris@731 | 17 fi |
Chris@731 | 18 |
Chris@731 | 19 kdiff_dir=easyhg-kdiff3 |
Chris@731 | 20 |
Chris@731 | 21 if [ ! -d "$kdiff_dir" ]; then |
Chris@731 | 22 echo |
Chris@731 | 23 echo "Directory $kdiff_dir not found: cloning and building it..." |
Chris@731 | 24 hg clone https://code.soundsoftware.ac.uk/hg/easyhg-kdiff3 "$kdiff_dir" |
Chris@731 | 25 cd "$kdiff_dir"/kdiff3/src-QT4 |
Chris@731 | 26 "$qtdir"/bin/qmake -r kdiff3.pro |
Chris@731 | 27 make |
Chris@731 | 28 cd ../../.. |
Chris@731 | 29 fi |
Chris@731 | 30 |
Chris@731 | 31 echo |
Chris@731 | 32 echo "Copying in kdiff3 executable..." |
Chris@731 | 33 |
Chris@731 | 34 cp "$kdiff_dir"/kdiff3/src-QT4/kdiff3.app/Contents/MacOS/kdiff3 "$app.app/Contents/MacOS/easyhg-kdiff3" |
Chris@731 | 35 |
Chris@731 | 36 echo "Done" |
Chris@731 | 37 |