File: build_local_inst

package info (click to toggle)
afbackup 3.3.8.1beta2-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 4,128 kB
  • ctags: 3,370
  • sloc: ansic: 46,932; sh: 4,654; tcl: 4,199; makefile: 536; csh: 416; perl: 133; sed: 93
file content (45 lines) | stat: -rwxr-xr-x 1,225 bytes parent folder | download
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
35
36
37
38
39
40
41
42
43
44
45
#!/bin/sh
################### Start of $RCSfile: build_local_inst,v $ ##################
#
# $Source: /home/alb/afbackup/afbackup-3.3.8beta7/RCS/build_local_inst,v $
# $Id: build_local_inst,v 1.3 2004/07/08 20:34:48 alb Exp alb $
# $Date: 2004/07/08 20:34:48 $
# $Author: alb $
#
#
####### description ################################################
#
#
#
####################################################################
#
# usage: $0 [ <targetdirectory> [ <make-target(s)> ] ]
#

# to make an installation competely to the directory defined by BASE below

if [ _"$1" != _ ] ; then
  BASE="$1"
else
  BASE=`pwd`/root/afbackup
fi
if [ _"$2" != _ ] ; then
  TARGETS="$2"
else
  TARGETS=install
fi

make $TARGETS	CLIENTLIBDIR="$BASE"/client/lib \
		CLIENTBINDIR="$BASE"/client/bin \
		CLIENTVARDIR="$BASE"/client/var \
		CLIENTMANDIR="$BASE"/client/man \
		CLIENTCONFDIR="$BASE"/client/etc \
		SERVERLIBDIR="$BASE"/server/lib \
		SERVERBINDIR="$BASE"/server/bin \
		SERVERVARDIR="$BASE"/server/var \
		SERVERMANDIR="$BASE"/server/man \
		SERVERCONFDIR="$BASE"/server/etc \
		SERVERREXECDIR="$BASE"/server/rexec \
		COMMONDIR="$BASE"/common \
		COMMONDATADIR="$BASE"/common/share \
		COMMONSHLIBDIR="$BASE"/common/share/lib