configure 4.3.1:

- make application name a variable (APP_NAME)
- rename xVERSION variable to APP_VERSION
- rename CODENAME variable to APP_CODENAME
- add CFG_VERSION variable
parent 00465169
......@@ -9,9 +9,11 @@
# #
#########################################################
export xVERSION=8.99
CODENAME="Hotride"
APP_NAME="BashStyle-NG"
APP_VERSION=8.99
APP_CODENAME="Hotride"
CFG_VERSION="4.3.1"
ERR_MSG=""
if [[ -d "/usr/lib/girepository-1.0/" ]]; then
......
......@@ -32,7 +32,7 @@ section_message () {
start_message () {
echo -e "\n${WHITE}Configuring ${GREEN}BashStyle-NG${YELLOW} v${xVERSION} ${CYAN}(${CODENAME})"
echo -e "\n${WHITE}Configuring ${GREEN}${APP_NAME}${YELLOW} v${APP_VERSION} ${CYAN}(${APP_CODENAME})"
tput sgr0
}
......@@ -97,7 +97,7 @@ end_message () {
help_message () {
echo -e "\n${GREEN}BashStyle-NG ${MAGENTA}v${xVERSION}${WHITE} / ${YELLOW}(Configure 4.3.0) ${CYAN}help
echo -e "\n${GREEN}${APP_NAME} ${MAGENTA}v${APP_VERSION}${WHITE} / ${YELLOW}(Configure ${CFG_VERSION}) ${CYAN}help
\n${WHITE}Options:"
echo -e "${ORANGE}--help${WHITE} *|${GREEN} Display this help message\
\n${ORANGE}--mode=<mode>${WHITE} *|${GREEN} user (do checks) or maintainer (skip checks)\
......
......@@ -21,7 +21,7 @@ copy_in_files () {
substitute_values () {
sed -e "s>@VERSION@>$xVERSION>g" \
sed -e "s>@VERSION@>$APP_VERSION>g" \
-e "s>@PREFIX@>$PREFIX>g" \
-e "s>@DATADIR@>$DATADIR>g" \
-e "s>@PYTHON@>$PYTHON>g" \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment