summaryrefslogtreecommitdiffstats
path: root/build-gluster-org/scripts/fedora-smoke.sh
blob: 2c45671cdd5d4bf8af27ad82d3020663e8135f7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

set -e

SRC=$(pwd);
nproc=$(getconf _NPROCESSORS_ONLN)

./autogen.sh;
P=/build;
sudo rm -rf $P/scratch;
mkdir -p $P/scratch;
cd $P/scratch;
sudo rm -rf $P/install;
$SRC/configure --prefix=$P/install --with-mountutildir=$P/install/sbin \
               --with-initdir=$P/install/etc --localstatedir=/var \
               --enable-debug --enable-gnfs --silent
make CFLAGS="-Wall -Werror -Wno-cpp" -j ${nproc};