summaryrefslogtreecommitdiff
path: root/get-git
diff options
context:
space:
mode:
Diffstat (limited to 'get-git')
-rwxr-xr-xget-git13
1 files changed, 11 insertions, 2 deletions
diff --git a/get-git b/get-git
index 4868e34..1480d02 100755
--- a/get-git
+++ b/get-git
@@ -63,10 +63,19 @@ COMPIZ="git://git.freedesktop.org/git/xorg/app/"
# Arguments for compiz' autogen.sh. You shouldn't need this. I do.
COMPIZARGS="--disable-inotify --disable-fuse"
+# Uncomment and set to your preffered location if you want a different
+# prefix. Or export it before starting this script.
+# PREFIX="/dev/random"
+
+# Add arguments to pass to autogen.sh here. Note that this is NOT passed
+# when building the core compiz package.
+GENERICARGS=""
###############################################################
## No further tinkering should be necesarry beyond this comment
+DEFPREFIX="/usr/local"
+MYPREFIX=${PREFIX:-$DEFPREFIX}
# Check for git
if [ -z "$(which git-clone)" ]; then
@@ -168,7 +177,7 @@ function build
}
# Build compiz first, and no need to continue if it fails.
-if ! build compiz "$COMPIZARGS"; then
+if ! build compiz "$COMPIZARGS --prefix=$MYPREFIX"; then
echo "Failed to build compiz. No reason to continue.";
exit 2;
fi
@@ -176,7 +185,7 @@ fi
# Build everything else now.
for a in $ITEMS; do
b=`echo $a | sed 's/.*\///g'`
- if ! build $b ; then
+ if ! build $b "$GENERICARGS --prefix=$MYPREFIX"; then
bail_ask "Failed to build $b !"
fi
done