Changeset ef88473


Ignore:
Timestamp:
02/02/2006 12:45:23 AM (18 years ago)
Author:
George Boudreau <georgeb@…>
Branches:
1.0, 2.3, 2.3.x, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
Children:
2bfc61a
Parents:
1327ccc
Message:

Adjust or remove text colour

File:
1 edited

Legend:

Unmodified
Added
Removed
  • HLFS/jhahlfs

    r1327ccc ref88473  
    5454
    5555_inline_doc="
    56 ${GREEN}
    5756     This script, jhahlfs, strives to create an accurate makefile
    5857   directly from the xml files used to generate the Hardened Linux From
     
    7776   before you start 129-console, 131-profile, 133-hosts, 134-network,
    7877   135-fstab, 136-kernel.
    79 ${OFF}"
     78"
    8079
    8180version="
     
    9493${DD_BORDER}
    9594${BOLD}
    96 ${WHITE} Usage: $0 ${YELLOW}[OPTION]
    97 ${CYAN}
     95 Usage: $0 ${BOLD}[OPTION]
     96
    9897Options:
    99 ${YELLOW}  -h, --help
    100 ${CYAN}        print this help, then exit
    101 ${YELLOW}  --readme
    102 ${CYAN}        print a small readme file, then exit
    103 ${YELLOW}  -V, --version
    104 ${CYAN}        print version number, then exit
    105 ${YELLOW}  -d  --directory DIR
    106 ${CYAN}        use DIR directory for building HLFS; all files jhahlfs produces will be
     98${BOLD}  -h, --help
     99${OFF}        print this help, then exit
     100${BOLD}  --readme
     101${OFF}        print a small readme file, then exit
     102${BOLD}  -V, --version
     103${OFF}        print version number, then exit
     104${BOLD}  -d  --directory DIR
     105${OFF}        use DIR directory for building HLFS; all files jhahlfs produces will be
    107106        in the directory DIR/jhahlfs. Default is \"/mnt/lfs\".
    108 ${YELLOW}  --rebuild
    109 ${CYAN}        clean the build directory before to perfom any other task. The directory
     107${BOLD}  --rebuild
     108${OFF}        clean the build directory before to perfom any other task. The directory
    110109         is cleaned only if it was populated by a previous jhahlfs run.
    111 ${YELLOW}  -P, --get-packages
    112 ${CYAN}        download the packages and patches. This assumes that the server declared in the
     110${BOLD}  -P, --get-packages
     111${OFF}        download the packages and patches. This assumes that the server declared in the
    113112        jhahlfs.conf file has the proper packages and patches for the book version being
    114113        processed.
    115 ${YELLOW}  -W, --working-copy DIR
    116 ${CYAN}        use the local working copy placed in DIR as the HLFS book
    117 ${YELLOW}  -L, --HLFS-version VER
    118 ${CYAN}        checkout VER version of the HLFS book. Supported versions at this time are:
     114${BOLD}  -W, --working-copy DIR
     115${OFF}        use the local working copy placed in DIR as the HLFS book
     116${BOLD}  -L, --HLFS-version VER
     117${OFF}        checkout VER version of the HLFS book. Supported versions at this time are:
    119118        dev* | trunk | SVN     aliases for Development HLFS
    120 ${YELLOW}  --fstab FILE
    121 ${CYAN}        use FILE as the /etc/fstab file for the HLFS system. If not specified,
     119${BOLD}  --fstab FILE
     120${OFF}        use FILE as the /etc/fstab file for the HLFS system. If not specified,
    122121        a default /etc/fstab file with dummy values is created.
    123 ${YELLOW}  -C, --kernel-config FILE
    124 ${CYAN}        use the kernel configuration file specified in FILE to build the kernel.
     122${BOLD}  -C, --kernel-config FILE
     123${OFF}        use the kernel configuration file specified in FILE to build the kernel.
    125124        if the file is not found, or if not specified, the kernel build is skipped.
    126 ${YELLOW}  -M, --run-make
    127 ${CYAN}        run make on the generated Makefile
     125${BOLD}  -M, --run-make
     126${OFF}        run make on the generated Makefile
    128127${DD_BORDER}
    129128-EOF-
     
    178177
    179178see_ya() {
    180     echo -e "\n\t${BOLD}${WHITE}Goodbye and thank you for choosing ${YELLOW}JHAHLFS\n${OFF}"
     179    echo -e "\n\t${BOLD}Goodbye and thank you for choosing ${YELLOW}JHAHLFS\n${OFF}"
    181180}
    182181##### Simple error TRAPS
     
    210209  # kernel  2.6.2>
    211210
    212   [[ $1 = "1" ]] && echo "${nl_}BASH: ${L_arrow}${GREEN}${BASH_VERSION}${R_arrow}"
     211  [[ $1 = "1" ]] && echo "${nl_}BASH: ${L_arrow}${BOLD}${BASH_VERSION}${R_arrow}"
    213212  case $BASH_VERSION in
    214213    [3-9].*) ;;
     
    223222  esac
    224223
    225   [[ $1 = "1" ]] && echo "GCC: ${L_arrow}${GREEN}`gcc -dumpversion`${R_arrow}"
     224  [[ $1 = "1" ]] && echo "GCC: ${L_arrow}${BOLD}`gcc -dumpversion`${R_arrow}"
    226225    case `gcc -dumpversion` in
    227226      [3-9].[0-9].* ) ;;
     
    239238  # >>>> Check kernel version against the minimum acceptable level <<<<
    240239  #
    241   [[ $1 = "1" ]] && echo "LINUX: ${L_arrow}${GREEN}`uname -r`${R_arrow}"
     240  [[ $1 = "1" ]] && echo "LINUX: ${L_arrow}${BOLD}`uname -r`${R_arrow}"
    242241
    243242  local IFS
     
    270269  local -r PARAM_LIST="BUILDDIR HPKG MODEL TEST TOOLCHAINTEST STRIP VIMLANG PAGE GRSECURITY_HOST RUNMAKE"
    271270  local -r ERROR_MSG='${OFF}${RED}The variable \"${GREEN}${config_param}${RED}\" value ${BOLD}${YELLOW}--\>${WHITE}${!config_param}${YELLOW}\<--${OFF}${RED} is invalid, check the config file ${GREEN}\<jhahlfs.conf\>${OFF}'
    272   local -r PARAM_VALS='${WHITE}${config_param}: ${L_arrow}${GREEN}${!config_param}${R_arrow}'
     271  local -r PARAM_VALS='${config_param}: ${L_arrow}${BOLD}${!config_param}${OFF}${R_arrow}'
    273272  local config_param
    274273  local validation_str
     
    432431        get_sources
    433432      else
    434         echo -ne "done\n"
     433        echo -ne "${BOLD}done\n"
    435434        extract_commands
    436435      fi
     
    443442          ;;
    444443      esac
    445       echo -ne "done\n"
     444      echo -ne "${BOLD}done\n"
    446445      extract_commands
    447446    fi
     
    497496
    498497  # Done. Moving on...
    499   echo -ne "done\n"
     498  echo -ne "${BOLD}done\n"
    500499  get_sources
    501500}
     
    645644  local TARGET LOADER
    646645
    647   echo  "${YELLOW}  Processing Chapter-4 scripts ${OFF}"
     646  echo  "  Processing Chapter-4 scripts "
    648647
    649648  # Define a few model dependant variables
     
    714713#----------------------------#
    715714
    716   echo "${YELLOW} Processing Chapter-5 scripts${OFF}"
     715  echo " Processing Chapter-5 scripts"
    717716
    718717  for file in chapter05/* ; do
     
    868867  fi
    869868
    870   echo -e "${YELLOW}  Processing Chapter-6 scripts ${OFF}"
     869  echo -e "  Processing Chapter-6 scripts "
    871870  for file in chapter06/* ; do
    872871    # Keep the script file name
     
    10301029#----------------------------#
    10311030
    1032   echo  "${YELLOW}  Processing Chapter-7 scripts ${OFF}"
     1031  echo  "  Processing Chapter-7 scripts "
    10331032  for file in chapter07/*; do
    10341033    # Keep the script file name
     
    11551154build_Makefile() {           # Construct a Makefile from the book scripts
    11561155#----------------------------#
    1157   echo -e "${GREEN}Creating Makefile... ${OFF}"
     1156  echo -e "Creating Makefile... "
    11581157
    11591158  cd $JHAHLFSDIR/commands
     
    12651264  cat $MKFILE.tmp >> $MKFILE
    12661265  rm $MKFILE.tmp
    1267   echo -ne "${GREEN}done\n${OFF}"
     1266  echo -ne "${BOLD}done\n${OFF}"
    12681267}
    12691268
Note: See TracChangeset for help on using the changeset viewer.