mirror of
https://gitlab.gnome.org/GNOME/gitg
synced 2024-11-05 16:43:26 +00:00
33 lines
710 B
Bash
Executable file
33 lines
710 B
Bash
Executable file
#!/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
|