summaryrefslogtreecommitdiff
path: root/makeall
blob: 472c75cf1c5fefa46a7db85007a1d9e2b2934d35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh

DEFCFLAGS="-O0 -ggdb3 -gstabs+ -Wall"
MYCFLAGS=${CFLAGS:-$DEFCFLAGS}

DEFPREFIX="/usr"
MYPREFIX=${PREFIX:-$DEFPREFIX}
if svn up
then
    ITEMS="beryl-core beryl-plugins beryl-settings beryl-manager emerald emerald-themes aquamarine heliodor"
    for item in $ITEMS
    do
        cd $item
        if ./autogen.sh --prefix=$MYPREFIX CFLAGS="$MYCFLAGS" && ([ "$item" == "aquamarine" ] && ./configure --prefix=$MYPREFIX CFLAGS="$MYCFLAGS" || true) && make && sudo make install
        then
            cd ../
            echo $item built ok
        else
            cd ../
            echo BUILD FAILED for $item
            exit 1
        fi
    done
else
    echo SVN UP FAILED.
    exit 1
fi