summaryrefslogtreecommitdiffstats
path: root/debian/_buildscripts/local/scripts/internals/C10shell
blob: 7c6a8761b03829f4d4696502444dd4db4120d526 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

# Color table
CPurple='\e[0;35m'
CWhite='\e[1;37m'
CNone='\e[0m'

# Invoke shell if build fails.
apt-get install -y --force-yes vim less bash mc
cd /tmp/buildd/*/debian/..
echo "${CPurple}---------------------------------------------------------${CNone}" >/dev/tty
echo "${CPurple}                !!!  Build FAILED  !!!                   ${CNone}" >/dev/tty
echo "${CPurple} You are now inside a shell in the building environment. ${CNone}" >/dev/tty
echo "${CPurple} ${CWhite}mc, vim, less${CPurple} are available for your convenience.       ${CNone}" >/dev/tty
echo "${CPurple} Type ${CWhite}exit${CPurple} to leave the shell when you are done.       ${CNone}" >/dev/tty
echo "${CPurple}---------------------------------------------------------${CNone}" >/dev/tty
/bin/bash </dev/tty >/dev/tty 2>/dev/tty