diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2018-06-20 19:13:35 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2018-06-20 19:16:10 +0900 |
| commit | e324c2e7e496f30183b678e8fa1a3c10cdb80e5b (patch) | |
| tree | 50fda18f6c1de7e73755e080fbc55a28833582ff /debian/_buildscripts/local/scripts/internals/C10shell | |
| parent | 77398a607fe09f49f40349bce398661c43e77143 (diff) | |
| download | tde-packaging-e324c2e7.tar.gz tde-packaging-e324c2e7.zip | |
DEB build scripts: major update aimed at simplifying the use for
non-root users.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'debian/_buildscripts/local/scripts/internals/C10shell')
| -rwxr-xr-x | debian/_buildscripts/local/scripts/internals/C10shell | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/debian/_buildscripts/local/scripts/internals/C10shell b/debian/_buildscripts/local/scripts/internals/C10shell new file mode 100755 index 000000000..7c6a8761b --- /dev/null +++ b/debian/_buildscripts/local/scripts/internals/C10shell @@ -0,0 +1,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 + |
