summaryrefslogtreecommitdiff
path: root/dh_lib
diff options
context:
space:
mode:
authorjoey <joey>1999-08-17 04:34:25 +0000
committerjoey <joey>1999-08-17 04:34:25 +0000
commitd079e6683cfcbef6a979eb7a02780eebdf480a74 (patch)
tree7cd6ba28701185b0facf84b98b9f4f92f56a8c3a /dh_lib
parentdd838eee7e75da018b2722f0ce4dbccd9f6d1a5d (diff)
downloaddebhelper-d079e6683cfcbef6a979eb7a02780eebdf480a74.tar.gz
r12: Initial Import
Diffstat (limited to 'dh_lib')
-rw-r--r--dh_lib12
1 files changed, 6 insertions, 6 deletions
diff --git a/dh_lib b/dh_lib
index b18c7e5a..618953d8 100644
--- a/dh_lib
+++ b/dh_lib
@@ -5,20 +5,20 @@
# function.
# Unfortunatly, this function doesn't work if your command uses redirection,
# you will have to call verbose_echo by hand then.
-function doit() {
+doit() {
verbose_echo "$*"
$*
}
# Echo something if the verbose flag is on.
-function verbose_echo() {
+verbose_echo() {
if [ "$DH_VERBOSE" ]; then
echo " $*"
fi
}
# Echo an error message and exit.
-function error() {
+error() {
echo `basename $0`": $1" >&2
exit 1
}
@@ -26,7 +26,7 @@ function error() {
# Pass it a name of a binary package, it returns the name of the tmp dir to
# use, for that package, relative to debian/
# This is for back-compatability with the debian/tmp tradition.
-function tmpdir() {
+tmpdir() {
if [ "$1" = "$MAINPACKAGE" ]; then
echo tmp
else
@@ -36,7 +36,7 @@ function tmpdir() {
# Pass it a name of a binary package, it returns the name to prefix to files
# in debian for this package.
-function pkgext() {
+pkgext() {
if [ "$1" != "$MAINPACKAGE" ]; then
echo "$PACKAGE."
fi
@@ -49,7 +49,7 @@ function pkgext() {
# 1: script to add to
# 2: filename of snippet
# 3: sed commands to run on the snippet. Ie, s/#PACKAGE#/$PACKAGE/
-function autoscript() {
+autoscript() {
autoscript_script=$1
autoscript_filename=$2
autoscript_sed=$3