]> git.gag.com Git - debian/amanda/blob - common-src/amanda-sh-lib.sh.in
Imported Upstream version 2.6.1p2
[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 PERL="@PERL@"
23 AWK="@AWK@"
24
25 ####
26 # Set up PATH for finding amanda executables
27
28 PATH="@sbindir@:@amlibexecdir@:$PATH"
29
30 ####
31 # Gettext
32
33 # use as follows:
34 #   echo `_ "%s: '%s' is not executable" "$myname" "$binpath"`
35 # NOTE: use a text editor with shell syntax hilighting to avoid
36 # quoting errors!
37
38 if test -n "$GETTEXT"; then
39     _() {
40             fmt=`$GETTEXT -d amanda "$1"`
41             shift
42             printf "$fmt" "$@"
43     }
44 else
45     _() {
46         printf "$@"
47     }
48 fi