File: configure

package info (click to toggle)
xymon 4.3.30-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,384 kB
  • sloc: ansic: 69,137; sh: 3,601; makefile: 863; javascript: 452; perl: 48
file content (34 lines) | stat: -rwxr-xr-x 683 bytes parent folder | download | duplicates (5)
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