Changeset ef88473 for HLFS/jhahlfs
- Timestamp:
- 02/02/2006 12:45:23 AM (19 years ago)
- Branches:
- 1.0, 2.3, 2.3.x, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
- Children:
- 2bfc61a
- Parents:
- 1327ccc
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
HLFS/jhahlfs
r1327ccc ref88473 54 54 55 55 _inline_doc=" 56 ${GREEN}57 56 This script, jhahlfs, strives to create an accurate makefile 58 57 directly from the xml files used to generate the Hardened Linux From … … 77 76 before you start 129-console, 131-profile, 133-hosts, 134-network, 78 77 135-fstab, 136-kernel. 79 ${OFF}"78 " 80 79 81 80 version=" … … 94 93 ${DD_BORDER} 95 94 ${BOLD} 96 ${WHITE} Usage: $0 ${YELLOW}[OPTION]97 ${CYAN} 95 Usage: $0 ${BOLD}[OPTION] 96 98 97 Options: 99 ${ YELLOW} -h, --help100 ${ CYAN} print this help, then exit101 ${ YELLOW} --readme102 ${ CYAN} print a small readme file, then exit103 ${ YELLOW} -V, --version104 ${ CYAN} print version number, then exit105 ${ YELLOW} -d --directory DIR106 ${ CYAN} use DIR directory for building HLFS; all files jhahlfs produces will be98 ${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 107 106 in the directory DIR/jhahlfs. Default is \"/mnt/lfs\". 108 ${ YELLOW} --rebuild109 ${ CYAN} clean the build directory before to perfom any other task. The directory107 ${BOLD} --rebuild 108 ${OFF} clean the build directory before to perfom any other task. The directory 110 109 is cleaned only if it was populated by a previous jhahlfs run. 111 ${ YELLOW} -P, --get-packages112 ${ CYAN} download the packages and patches. This assumes that the server declared in the110 ${BOLD} -P, --get-packages 111 ${OFF} download the packages and patches. This assumes that the server declared in the 113 112 jhahlfs.conf file has the proper packages and patches for the book version being 114 113 processed. 115 ${ YELLOW} -W, --working-copy DIR116 ${ CYAN} use the local working copy placed in DIR as the HLFS book117 ${ YELLOW} -L, --HLFS-version VER118 ${ 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: 119 118 dev* | trunk | SVN aliases for Development HLFS 120 ${ YELLOW} --fstab FILE121 ${ 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, 122 121 a default /etc/fstab file with dummy values is created. 123 ${ YELLOW} -C, --kernel-config FILE124 ${ 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. 125 124 if the file is not found, or if not specified, the kernel build is skipped. 126 ${ YELLOW} -M, --run-make127 ${ CYAN} run make on the generated Makefile125 ${BOLD} -M, --run-make 126 ${OFF} run make on the generated Makefile 128 127 ${DD_BORDER} 129 128 -EOF- … … 178 177 179 178 see_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}" 181 180 } 182 181 ##### Simple error TRAPS … … 210 209 # kernel 2.6.2> 211 210 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}" 213 212 case $BASH_VERSION in 214 213 [3-9].*) ;; … … 223 222 esac 224 223 225 [[ $1 = "1" ]] && echo "GCC: ${L_arrow}${ GREEN}`gcc -dumpversion`${R_arrow}"224 [[ $1 = "1" ]] && echo "GCC: ${L_arrow}${BOLD}`gcc -dumpversion`${R_arrow}" 226 225 case `gcc -dumpversion` in 227 226 [3-9].[0-9].* ) ;; … … 239 238 # >>>> Check kernel version against the minimum acceptable level <<<< 240 239 # 241 [[ $1 = "1" ]] && echo "LINUX: ${L_arrow}${ GREEN}`uname -r`${R_arrow}"240 [[ $1 = "1" ]] && echo "LINUX: ${L_arrow}${BOLD}`uname -r`${R_arrow}" 242 241 243 242 local IFS … … 270 269 local -r PARAM_LIST="BUILDDIR HPKG MODEL TEST TOOLCHAINTEST STRIP VIMLANG PAGE GRSECURITY_HOST RUNMAKE" 271 270 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}' 273 272 local config_param 274 273 local validation_str … … 432 431 get_sources 433 432 else 434 echo -ne " done\n"433 echo -ne "${BOLD}done\n" 435 434 extract_commands 436 435 fi … … 443 442 ;; 444 443 esac 445 echo -ne " done\n"444 echo -ne "${BOLD}done\n" 446 445 extract_commands 447 446 fi … … 497 496 498 497 # Done. Moving on... 499 echo -ne " done\n"498 echo -ne "${BOLD}done\n" 500 499 get_sources 501 500 } … … 645 644 local TARGET LOADER 646 645 647 echo " ${YELLOW} Processing Chapter-4 scripts ${OFF}"646 echo " Processing Chapter-4 scripts " 648 647 649 648 # Define a few model dependant variables … … 714 713 #----------------------------# 715 714 716 echo " ${YELLOW} Processing Chapter-5 scripts${OFF}"715 echo " Processing Chapter-5 scripts" 717 716 718 717 for file in chapter05/* ; do … … 868 867 fi 869 868 870 echo -e " ${YELLOW} Processing Chapter-6 scripts ${OFF}"869 echo -e " Processing Chapter-6 scripts " 871 870 for file in chapter06/* ; do 872 871 # Keep the script file name … … 1030 1029 #----------------------------# 1031 1030 1032 echo " ${YELLOW} Processing Chapter-7 scripts ${OFF}"1031 echo " Processing Chapter-7 scripts " 1033 1032 for file in chapter07/*; do 1034 1033 # Keep the script file name … … 1155 1154 build_Makefile() { # Construct a Makefile from the book scripts 1156 1155 #----------------------------# 1157 echo -e " ${GREEN}Creating Makefile... ${OFF}"1156 echo -e "Creating Makefile... " 1158 1157 1159 1158 cd $JHAHLFSDIR/commands … … 1265 1264 cat $MKFILE.tmp >> $MKFILE 1266 1265 rm $MKFILE.tmp 1267 echo -ne "${ GREEN}done\n${OFF}"1266 echo -ne "${BOLD}done\n${OFF}" 1268 1267 } 1269 1268
Note:
See TracChangeset
for help on using the changeset viewer.