From 8ce4b86b2075c13781325837f5c600c11eb616c8 Mon Sep 17 00:00:00 2001
From: unpush <unpush@gmail.com>
Date: Sat, 26 Apr 2008 19:03:21 +0900
Subject: [PATCH] local build.

---
 git-compiz |   19 ++++++++++---------
 1 files changed, 10 insertions(+), 9 deletions(-)

diff --git a/git-compiz b/git-compiz
index 73fa223..5cd0161 100755
--- a/git-compiz
+++ b/git-compiz
@@ -12,7 +12,7 @@
 ###########################################################################################################################################
 
 ## Enable/Disable debug
-DEBUG="false"
+DEBUG="true"
 
 ## Compiz option code generator
 ITEMS="fusion/libraries/bcop" 
@@ -62,7 +62,7 @@ ARGS="--enable-librsvg --disable-kconfig --disable-kde --disable-kde4"   # -> GN
 
 ## Uncomment and set to your preffered location if you want a different
 ## prefix. Or export it before starting this script.
-PREFIX="/usr"
+#PREFIX="/usr"
 
 ## Sudo or Su?
 ROOT="sudo"
@@ -178,6 +178,7 @@ function build
 	OLDPWD=$PWD
 	cd $1
 
+	export PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig:$PREFIX/share/pkgconfig
         echo " * Cleaning old compile"
         if [ $DEBUG = "false" ]; then
                 make clean &> /dev/null
@@ -188,7 +189,6 @@ function build
 
 	if [ -f autogen.sh ]; then
 	    echo " * Configuring new version"
-            export PKG_CONFIG_PATH=$PREFIX/$LIBDIR
 	    if [ $DEBUG = "false" ]; then
 			./autogen.sh $2 &> /dev/null
 	    else
@@ -229,15 +229,15 @@ function build
         if [ x$ROOT == x"sudo" ]; then
                if [ $DEBUG = "false" ]; then
                 if [ -f setup.py ]; then
-                       sudo python setup.py install --prefix=$PREFIX &>/dev/null
+                       python setup.py install --prefix=$PREFIX &>/dev/null
                 else
-                       sudo bash -c "BUILD_GLOBAL=true make install" &> /dev/null
+                       bash -c "BUILD_GLOBAL=true make install" &> /dev/null
                 fi
              else
                 if [ -f setup.py ]; then
-                       sudo python setup.py install --prefix=$PREFIX
+                       python setup.py install --prefix=$PREFIX
                 else
-                       sudo bash -c "BUILD_GLOBAL=true make install"
+                       bash -c "BUILD_GLOBAL=true make install"
                 fi
          fi
 	else
@@ -251,7 +251,7 @@ function build
                if [ -f setup.py ]; then
                        su -c "python setup.py install --prefix=$PREFIX"
                else
-                       su -c "sudo bash -c \"BUILD_GLOBAL=true make install\""
+                       su -c "bash -c \"BUILD_GLOBAL=true make install\""
                fi
            fi
 	fi
@@ -269,7 +269,8 @@ function build
 }
 
 # Get omega scripts
-get_repo "users/omega/scripts" $REPO
+#get_repo "users/omega/scripts" $REPO
+test=0
 
 # Check & update this script
         if [ $test -ne 1 ]; then
-- 
1.5.5

