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 13GREP="@GREP@" 14EGREP="@EGREP@" 15GETTEXT="@GETTEXT@" 16GNUPLOT="@GNUPLOT@" 17GNUTAR="@GNUTAR@" 18STAR="@STAR@" 19SAMBA_CLIENT="@SAMBA_CLIENT@" 20GZIP="@GZIP@" 21SORT="@SORT@" 22PERL="@PERL@" 23AWK="@AWK@" 24 25#### 26# Set up PATH for finding amanda executables 27 28PATH="@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 38if test -n "$GETTEXT"; then 39 _() { 40 fmt=`$GETTEXT -d amanda "$1"` 41 shift 42 printf "$fmt" "$@" 43 } 44else 45 _() { 46 printf "$@" 47 } 48fi 49