36 lines
682 B
Bash
36 lines
682 B
Bash
# Copyright (C) 2011 Gabriel Ebner
|
|
# vim:fdm=marker ft=sh:
|
|
|
|
# $MYPREFIX {{{1
|
|
|
|
add_to() {
|
|
if [ -n "${!1}" ]; then
|
|
export $1="$2:${!1}"
|
|
else
|
|
export $1="$2"
|
|
fi
|
|
}
|
|
|
|
add_myprefix_to() {
|
|
add_to "$1" "$MYPREFIX/$2"
|
|
}
|
|
|
|
MYPREFIX=$HOME/.local
|
|
|
|
add_to PATH ~/.cabal/bin
|
|
|
|
add_myprefix_to LD_LIBRARY_PATH lib
|
|
|
|
add_myprefix_to MANPATH share/man
|
|
|
|
add_myprefix_to PKG_CONFIG_PATH lib/pkgconfig
|
|
|
|
add_myprefix_to PATH bin
|
|
add_myprefix_to PATH sbin
|
|
|
|
if [ -d ~/build/android-sdk-linux ]; then
|
|
export ANDROID_HOME=$HOME/build/android-sdk-linux
|
|
add_to PATH $ANDROID_HOME/platform-tools:$ANDROID_HOME/tools
|
|
export ANDROID_SDK=$ANDROID_HOME ANDROID_NDK=$HOME/build/android-ndk-r9c
|
|
fi
|