summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristian Lyngstol <kristian@bohemians.org>2007-05-13 13:58:19 +0200
committerKristian Lyngstol <kristian@bohemians.org>2007-05-13 13:58:19 +0200
commit9c4e901877099046bf66ed545eb97e4f1ac80c01 (patch)
tree111dd1672796f21e290fcdeec38439b2c29e8832
parent53d3ed683e3bee444670bc2699edbea837f69bbb (diff)
downloadcompiz-scripts-9c4e901877099046bf66ed545eb97e4f1ac80c01.tar.gz
compiz-scripts-9c4e901877099046bf66ed545eb97e4f1ac80c01.tar.bz2
Supress errors (optional), animation repo by default
-rwxr-xr-xget-git33
1 files changed, 29 insertions, 4 deletions
diff --git a/get-git b/get-git
index a424188..4868e34 100755
--- a/get-git
+++ b/get-git
@@ -21,12 +21,16 @@
# This script attempts to get all compcomm/compiz sources you need,
# build them and install them.
+SUPRESS="true" ## set to false to display compile-stuff.
+
# Needed for premerge plugins
ITEMS="compcomm/libraries/bcop"
# The beryl plugins, ported to compiz
ITEMS="$ITEMS compcomm/plugins/beryl-premerge"
# Emerald window decorator
ITEMS="$ITEMS compcomm/decorators/emerald compcomm/decorators/emerald-themes"
+# Animation
+ITEMS="$ITEMS compcomm/plugins/animation"
### CCS
# (formerly libbs), you can safly comment out this and use ini or gconf
@@ -92,7 +96,11 @@ function get_repo
if [ -d $b ]; then
cd $b
echo "Updating $b";
- git pull
+ if [ $SUPRESS = "true" ]; then
+ git pull > /dev/null
+ else
+ git pull
+ fi
cd $here
else
echo "Cloning $b";
@@ -122,19 +130,36 @@ function build
OLDPWD=$PWD
cd $1
echo "Building $1: ./autogen.sh $2"
- if ! ./autogen.sh $2 ; then
+ if [ $SUPRESS = "true" ]; then
+ ./autogen.sh $2 > /dev/null
+ else
+ ./autogen.sh $2
+ fi
+ if [ $? -ne 0 ]; then
echo "$1's autogen.sh reports errors. Bailing.";
cd $OLDPWD
return 1
fi
+
echo "Building $1: make"
- if ! make; then
+ if [ $SUPRESS = "true" ]; then
+ make > /dev/null
+ else
+ make
+ fi
+ if [ $? -ne 0 ]; then
echo "$1's make returned errors. Bailing.";
cd $OLDPWD
return 1
fi
+
echo "Building $1: sudo make install"
- if ! sudo make install; then
+ if [ $SUPRESS = "true" ]; then
+ sudo make install > /dev/null
+ else
+ sudo make install
+ fi
+ if [ $? -ne 0 ]; then
echo "$1's sudo make install returned an error and might not work.";
cd $OLDPWD
return 1