aboutsummaryrefslogtreecommitdiff
path: root/pbuilder-runhooks
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2015-10-13 17:31:59 +0000
committerMattia Rizzolo <mattia@mapreri.org>2015-10-13 17:31:59 +0000
commit4b533a56179b286e8d10a7f8a40da3f0d8d18095 (patch)
tree03365b911579b1cebc07f34d3c407d3c7a07272e /pbuilder-runhooks
parent9afee156e06b9064ee7eb8e35c8415f59d1b3e80 (diff)
downloadpbuilder-4b533a56179b286e8d10a7f8a40da3f0d8d18095.tar
pbuilder-4b533a56179b286e8d10a7f8a40da3f0d8d18095.tar.gz
pbuilder-runhooks: normalize whitespaces
Gbp-Dch: Ignore
Diffstat (limited to 'pbuilder-runhooks')
-rw-r--r--pbuilder-runhooks34
1 files changed, 17 insertions, 17 deletions
diff --git a/pbuilder-runhooks b/pbuilder-runhooks
index d5c8d23..fbb9e75 100644
--- a/pbuilder-runhooks
+++ b/pbuilder-runhooks
@@ -17,8 +17,8 @@
# $BUILDPLACE is as used in pbuilder. When already inside chroot, this
# routine can be called with $BUILDPLACE='' (from pdebuild-internal)
-# TODO: * Are there any other executable backup types we should
-# filtered besides *~ and *.bak?
+# TODO: * Are there any other executable backup types we should
+# filtered besides *~ and *.bak?
#
#==========================================================================
@@ -26,22 +26,22 @@ hooks=tmp/hooks
#==========================================================================
# Set up fresh chroot'd hooks tmp script directory
-#
+#
function loadhooks () {
if [ -z "$HOOKDIR" ]; then
- return ;
+ return ;
fi
if [ -d "$BUILDPLACE/$hooks" ]; then
- rm -rf "$BUILDPLACE/$hooks"
+ rm -rf "$BUILDPLACE/$hooks"
fi
if [ -d "$HOOKDIR" ]; then
- mkdir -p "$BUILDPLACE/$hooks"
- if ! cp -aL "$HOOKDIR/"* "$BUILDPLACE/$hooks"; then
- log "W: no hooks found in the hookdir '$HOOKDIR'"
- fi
+ mkdir -p "$BUILDPLACE/$hooks"
+ if ! cp -aL "$HOOKDIR/"* "$BUILDPLACE/$hooks"; then
+ log "W: no hooks found in the hookdir '$HOOKDIR'"
+ fi
else
- log "W: hookdir $HOOKDIR does not exist, skipping"
+ log "W: hookdir $HOOKDIR does not exist, skipping"
fi
}
@@ -51,24 +51,24 @@ function loadhooks () {
function unloadhooks () {
if [ -z "$HOOKDIR" ]; then
- return ;
+ return ;
fi
if [ -d "$BUILDPLACE/$hooks" ]; then
- rm -rf "$BUILDPLACE/$hooks"
+ rm -rf "$BUILDPLACE/$hooks"
else
- log "E: Logic failure in hook handling. Directory $BUILDPLACE/$hooks should exist but it does not."
+ log "E: Logic failure in hook handling. Directory $BUILDPLACE/$hooks should exist but it does not."
fi
}
#--------------------------------------------------------------------------
-# Execute every script found in the chroot'd target directory. We only
+# Execute every script found in the chroot'd target directory. We only
# test for whether a file is executable because we have no idea what
# the user had put in their dist. If they want PL/1 and ADA on the base
-# dist or have decided to use emacslisp for everything, it's their
+# dist or have decided to use emacslisp for everything, it's their
# problem.
#
-# Args: Required prefix on hook fn name
-# Returns: none
+# Args: Required prefix on hook fn name
+# Returns: none
#
function executehooks () {