clixon/test/cicd/clixon-config.sh
2020-09-07 16:15:12 +00:00

16 lines
395 B
Bash

#!/bin/sh
# A top-level configurer for clixon
set -eux
if [ $# -ne 1 ]; then
echo "usage: $0 <restconf>"
echo " where <restconf> is fcgi or evhtp"
exit -1
fi
restconf=$1
if [ $(uname) = "FreeBSD" ]; then
./configure --with-cligen=/usr/local --with-wwwuser=www --enable-optyangs --with-restconf=$restconf
else
./configure --enable-optyangs --with-restconf=$restconf
fi