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 29 30 31 32 33 34
|
#!/bin/sh
# Configuration script for Xymon.
# $Id: configure 7474 2014-09-28 09:39:28Z storner $
BASEDIR="`dirname $0`"
TARGET="$1"
if test "$TARGET" != ""; then shift; fi
# Make sure that all shell-scripts are executable.
# Subversion has a habit of exporting without the
# execute-bit set.
chmod 755 $BASEDIR/configure* $BASEDIR/build/*.sh $BASEDIR/client/*.sh
case "$TARGET" in
"--client")
exec $BASEDIR/configure.client $*
;;
"--server"|"")
exec $BASEDIR/configure.server $*
;;
"--help")
echo "To configure a Xymon server: $0 --server"
echo "To configure a Xymon client: $0 --client"
;;
*)
echo "unrecognized $0 target $TARGET"
exit 1
;;
esac
exit 0
|