summaryrefslogtreecommitdiffstats
path: root/build_all.sh
blob: 2339c9e14d37e5774b6386d9abfeb6d6ba2ea91b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash

[ "$#" -gt "1" ] && echo "Too many args." && exit 1
[ "$#" -lt "1" ] && set -- "$@" "lite"

case "$(echo "$1" | tr "[:upper:]" "[:lower:]")" in
  lite|light)
    cp -p config.h.lite config.h
    cp -p Makefile.lite Makefile
    make
    ;;
  gnu)
    autoreconf -i -Wno-unsupported && \
    ./configure && \
    make
    ;;
  *)
    echo "Unknown build type: $1"
    exit 1
    ;;
esac
OpenPOWER on IntegriCloud