File: build

package info (click to toggle)
gitg 41-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 18,876 kB
  • sloc: ansic: 1,636; ruby: 1,445; sh: 314; python: 261; xml: 57; makefile: 15
file content (32 lines) | stat: -rwxr-xr-x 659 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash

. $(dirname "$0")/env

# Install brew if necessary
if [ ! -f "$d/install/bin/brew" ]; then
	mkdir -p "$d/install"
	bsha1=375efe09455218d9929e41f16317074ccdf50f2a

	(
		cd "$d/install"
		curl -L -o $bsha1.zip https://github.com/Homebrew/brew/archive/$bsha1.zip
		unzip $bsha1.zip
		rm -f $bsha1.zip

		shopt -s dotglob nullglob
		mv "brew-$bsha1"/* .
		shopt -u dotglob

		rmdir "brew-$bsha1"
	)
fi

# Link tap if necessary
tap="$d/install/Library/Taps/gnome/homebrew-gitg"

if [ ! -d "$tap" ]; then
	mkdir -p "$d/install/Library/Taps/gnome"
	ln -s "$root/osx/Taps/gitg" "$tap"
fi

exec "$lbrew" install --dependencies-only --HEAD gnome/gitg/gitg