summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-09-08 13:47:39 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2011-09-08 13:47:39 +0200
commit7ff2037725c7164e83d041af828f9d14d78ebf78 (patch)
tree7dc5ce009b1fd646b15829f4d662231c1d3be96d
parent97aa459ffd87e51b536211b2463fea8c35a759e6 (diff)
downloadbin-7ff2037725c7164e83d041af828f9d14d78ebf78.zip
bin-7ff2037725c7164e83d041af828f9d14d78ebf78.tar.gz
build-wayland.sh: add BUILD_DIR var
-rwxr-xr-xbuild-wayland.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/build-wayland.sh b/build-wayland.sh
index 415fe07..0ec41c1 100755
--- a/build-wayland.sh
+++ b/build-wayland.sh
@@ -12,6 +12,8 @@ PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1
export WLD LD_LIBRARY_PATH PKG_CONFIG_PATH ACLOCAL C_INCLUDE_PATH LIBRARY_PATH PKG_CONFIG_ALLOW_SYSTEM_CFLAGS
+BUILD_DIR=${BUILD_DIR:-~/usr/git/wayland}
+
[ ! -d "$WLD/share/aclocal" ] && sudo mkdir -p "$WLD/share/aclocal"
RESET="\033[0m"
@@ -46,6 +48,8 @@ function do_your_job () {
say " * SUCCESS\n"
}
+cd $BUILD_DIR || exit 1
+
# WAYLAND
say "wayland"
my_dir=wayland