summaryrefslogtreecommitdiff
path: root/pbuilder/hooks/C10shell
diff options
context:
space:
mode:
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