summaryrefslogtreecommitdiffstats
path: root/easy_e17.sh
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-06-15 08:22:32 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2011-06-15 08:22:32 +0200
commit94a359385a737071602726a57b40990356928a5c (patch)
tree82f6897febdb3da211e20725d3418ea8d18babeb /easy_e17.sh
parent2627a7c90a5a62558347cacb17fa999a3db0cb10 (diff)
downloadbin-94a359385a737071602726a57b40990356928a5c.zip
bin-94a359385a737071602726a57b40990356928a5c.tar.gz
easy_e17.sh: remove phase function, move open_header, wrong functions
Diffstat (limited to 'easy_e17.sh')
-rwxr-xr-xeasy_e17.sh74
1 files changed, 26 insertions, 48 deletions
diff --git a/easy_e17.sh b/easy_e17.sh
index c8e3f47..299cf36 100755
--- a/easy_e17.sh
+++ b/easy_e17.sh
@@ -81,6 +81,32 @@ function set_notification ()
fi
}
+function wrong () {
+ header
+ if [ "$1" ]; then
+ echo -e "\033[1m-------------------------------\033[7m Bad script argument \033[0m\033[1m----------------------------\033[0m"
+ echo -e " \033[1m$1\033[0m"
+ else
+ help
+ exit 0
+ fi
+ echo -e "\033[1m--------------------------------------------------------------------------------\033[0m"
+ echo
+ echo
+ exit 1
+}
+
+function open_header ()
+{
+ l=${#1}
+ set_title $1
+ padding=""
+ for (( i=$((46-l)); i > 0; i-- )) do
+ padding="$padding-"
+ done
+ echo -e "\n\033[1m-------------------------------\033[7m $1 \033[0m\033[1m-$padding\033[0m"
+}
+
function header ()
{
clear
@@ -209,54 +235,6 @@ function help ()
fi
}
-function wrong () {
- header
- if [ "$1" ]; then
- echo -e "\033[1m-------------------------------\033[7m Bad script argument \033[0m\033[1m----------------------------\033[0m"
- echo -e " \033[1m$1\033[0m"
- else
- help
- exit 0
- fi
- echo -e "\033[1m--------------------------------------------------------------------------------\033[0m"
- echo
- echo
- exit 1
-}
-
-function phase ()
-{
- echo -e "\033[1m--------------------------------\033[7m Build phase $1/3 \033[0m\033[1m-------------------------------\033[0m"
- case $1 in
- 1)
- echo "- running some basic system checks"
- echo "- source checkout/update"
- ;;
- 2)
- echo "- lib-compilation and installation"
- echo "- apps-compilation and installation"
- ;;
- 3)
- echo "- cleaning"
- echo "- install notes"
- ;;
- esac
- echo -e "\033[1m--------------------------------------------------------------------------------\033[0m"
- echo
- echo
-}
-
-function open_header ()
-{
- l=${#1}
- set_title $1
- padding=""
- for (( i=$((46-l)); i > 0; i-- )) do
- padding="$padding-"
- done
- echo -e "\n\033[1m-------------------------------\033[7m $1 \033[0m\033[1m-$padding\033[0m"
-}
-
# INIT #############################################################################