summaryrefslogtreecommitdiff
path: root/pbuilder/hooks/C10shell
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2016-07-09 14:52:03 +0200
committerJonas Smedegaard <dr@jones.dk>2016-07-09 14:52:03 +0200
commita19a85b6bec2b23d475e9f8c3498f6ca78636542 (patch)
tree3efd0be17fa9006ad88ea5e5ef5bbbc01ac935ee /pbuilder/hooks/C10shell
parent01b092026554f084c056ef8698217a0eadee0fa9 (diff)
Copy pbuilder sample hooks from doc dir of pbuilder package.
Diffstat (limited to 'pbuilder/hooks/C10shell')
-rwxr-xr-xpbuilder/hooks/C10shell8
1 files changed, 8 insertions, 0 deletions
diff --git a/pbuilder/hooks/C10shell b/pbuilder/hooks/C10shell
new file mode 100755
index 0000000..6fa0cb6
--- /dev/null
+++ b/pbuilder/hooks/C10shell
@@ -0,0 +1,8 @@
+#!/bin/bash
+# example file to be used with --hookdir
+#
+# invoke shell if build fails.
+BUILDDIR="${BUILDDIR:-/tmp/buildd}"
+apt-get install -y "${APTGETOPT[@]}" vim less
+cd "$BUILDDIR"/*/debian/..
+/bin/bash < /dev/tty > /dev/tty 2> /dev/tty