File: upgrade-annex-osx.sh

package info (click to toggle)
datalad 1.1.5-2.1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 7,140 kB
  • sloc: python: 69,392; sh: 1,521; makefile: 220
file content (20 lines) | stat: -rwxr-xr-x 592 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash

curver=$(git annex version | awk '/version:/{print $3;}' | sed -e 's,-.*,,g')
annexdir=/Applications/git-annex.app
curverdir=$annexdir.$curver

rm -f git-annex.dmg
# release
# curl -O https://downloads.kitenet.net/git-annex/OSX/current/10.10_Yosemite/git-annex.dmg
# daily build
curl -O https://downloads.kitenet.net/git-annex/autobuild/x86_64-apple-yosemite/git-annex.dmg

hdiutil attach git-annex.dmg

if [ ! -z "$curver" ] && [ ! -e "$curverdir" ]; then
	mv $annexdir $curverdir
fi

rsync -a /Volumes/git-annex/git-annex.app /Applications/
hdiutil  detach /Volumes/git-annex/