summaryrefslogtreecommitdiff
path: root/makeall
blob: b39f4d279c0b7f2310ef9f8d08ff055783288886 (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
28
#!/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-bindings 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