File: shell

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 (33 lines) | stat: -rwxr-xr-x 710 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
33
#!/bin/bash

. $(dirname "$0")/env

export GITG_SHELL=1

dependencies="$($b deps gnome/gitg/gitg)"

CFLAGS="-Wno-format-nonliteral -Wno-format-security"
LDFLAGS=""

prefix=$($b --prefix)

PATH="$prefix/bin:$PATH"
XDG_DATA_DIRS="$prefix/share:$XDG_DATA_DIRS"

prefixes=$($b --prefix $dependencies)

for prefix in $prefixes;
do
	PKG_CONFIG_PATH="$prefix/lib/pkgconfig:$PKG_CONFIG_PATH"
	XDG_DATA_DIRS="$prefix/share:$XDG_DATA_DIRS"

	CFLAGS="-I$prefix/include $CFLAGS"
	LDFLAGS="-L$prefix/lib $LDFLAGS"
	PATH="$prefix/bin:$PATH"
done

export PKG_CONFIG_PATH XDG_DATA_DIRS CFLAGS LDFLAGS PATH
export PS1_EXTRA="\[\033[0;35m\](gitg)\[\033[0m\] "
export MAKEFLAGS="-j$(sysctl -n machdep.cpu.core_count)"

exec bash