summaryrefslogtreecommitdiffstats
path: root/build-gluster-org/scripts/fedora-smoke.sh
blob: 6c5e59422718ce23aa4c7238fa3acc439e6e04c3 (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;
sudo 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};