0c82190cdb475f193504b4fedbef20ffdc8c1cca
[debian/amanda] / common-src / amanda-sh-lib.sh.in
1 # Shell library containing functions and definitions common to amanda's
2 # shell scripts and wrappers.
3
4 # Include this file as follows:
5 #   prefix="@prefix@"
6 #   exec_prefix="@exec_prefix@"
7 #   amlibexecdir="@amlibexecdir@"
8 #   . "${amlibexecdir}/amanda-sh-lib.sh"
9
10 ####
11 # Configure variables
12
13 GREP="@GREP@"
14 EGREP="@EGREP@"
15 GETTEXT="@GETTEXT@"
16 GNUPLOT="@GNUPLOT@"
17 GNUTAR="@GNUTAR@"
18 STAR="@STAR@"
19 SAMBA_CLIENT="@SAMBA_CLIENT@"
20 GZIP="@GZIP@"
21 SORT="@SORT@"
22 MAILER="@MAILER@"
23 PERL="@PERL@"
24 AWK="@AWK@"
25
26 ####
27 # Set up PATH for finding amanda executables
28
29 PATH="@sbindir@:@amlibexecdir@:$PATH"
30
31 ####
32 # Gettext
33
34 # use as follows:
35 #   echo `_ "%s: '%s' is not executable" "$myname" "$binpath"`
36 # NOTE: use a text editor with shell syntax hilighting to avoid
37 # quoting errors!
38
39 if test -n "$GETTEXT"; then
40     _() {
41             fmt=`$GETTEXT -d amanda "$1"`
42             shift
43             printf "$fmt" $*
44     }
45 else
46     _() {
47         printf "$@"
48     }
49 fi