- Timestamp:
- 08/26/2006 01:00:37 PM (18 years ago)
- Branches:
- experimental
- Children:
- 392e11c3
- Parents:
- 3c96826
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
common/common-functions
r3c96826 r0818ea6 3 3 # $Id$ 4 4 5 set +e 6 7 # VT100 colors 8 declare -r BLACK=$'\e[1;30m' 9 declare -r DK_GRAY=$'\e[0;30m' 10 11 declare -r RED=$'\e[31m' 12 declare -r GREEN=$'\e[32m' 13 declare -r YELLOW=$'\e[33m' 14 declare -r BLUE=$'\e[34m' 15 declare -r MAGENTA=$'\e[35m' 16 declare -r CYAN=$'\e[36m' 17 declare -r WHITE=$'\e[37m' 18 19 declare -r OFF=$'\e[0m' 20 declare -r BOLD=$'\e[1m' 21 declare -r REVERSE=$'\e[7m' 22 declare -r HIDDEN=$'\e[8m' 23 24 declare -r tab_=$'\t' 25 declare -r nl_=$'\n' 26 27 declare -r DD_BORDER="${BOLD}==============================================================================${OFF}" 28 declare -r SD_BORDER="${BOLD}------------------------------------------------------------------------------${OFF}" 29 declare -r STAR_BORDER="${BOLD}******************************************************************************${OFF}" 30 31 # bold yellow > < pair 32 declare -r R_arrow=$'\e[1;33m>\e[0m' 33 declare -r L_arrow=$'\e[1;33m<\e[0m' 34 35 36 usage() { 37 cat <<- -EOF- 38 ${DD_BORDER} 39 ${BOLD} 40 Usage: $0 ${BOLD}[OPTION] 41 42 ${RED}IMPORTANT:${OFF} Only supported command line switches are listed here. 43 For more fine-grained setups you must edit the relevant 44 configuration files placed under ${BOLD}common/${OFF} and ${BOLD}$(echo $PROGNAME | tr [a-z] [A-Z])/${OFF} 45 46 Options: 47 ${BOLD} -h, --help${OFF} 48 print this help, then exit 49 50 ${BOLD} -V, --version${OFF} 51 print version information, then exit 52 53 ${BOLD} -B, --book VER${OFF} 54 use VER version of the book as the system to build. 55 Supported VER values are: 56 dev*, trunk, SVN = aliases for the Development version of {C,H}LFS 57 branch-NAME = a branch of name NAME 58 VERSION = the version of a stable released book 59 To know what branches and stable books work with this version of jhalfs 60 please see http://wiki.linuxfromscratch.org/alfs/wiki/SupportedBooks 61 62 ${BOLD} -D --directory DIR${OFF} 63 use DIR directory for building ${BOLD}$(echo $PROGNAME | tr [a-z] [A-Z])${OFF}; all files jhalfs-X produces 64 will be in the directory DIR/${SCRIPT_ROOT}. 65 The current setting for BUILDDIR is "$BUILDDIR" 66 67 ${BOLD} -G, --get-packages${OFF} 68 download the packages and patches. This assumes that the server declared 69 in the configuration file has the proper packages and patches for the 70 book version being processed. 71 72 ${BOLD} -O, --optimize${OFF} 73 Optimize [0-2] 74 0 = no optimization 75 1 = optimize final system only 76 2 = optimize both temporary tools and final system 77 Edit common/opt_config{,.d/*} and common/opt_override as desired. 78 79 ${BOLD} -T, --testsuites N ${OFF} 80 Run test suites [0-3] 81 0 = none 82 1 = only final system Glibc, GCC and Binutils testsuites 83 2 = all final system testsuites 84 3 = all temporary tools and final system testsuites 85 In CLFS and HLFS, 3 is an alias to 2 86 87 ${BOLD} -W, --working-copy DIR${OFF} 88 use the local working copy placed in DIR as the $(echo $PROGNAME | tr [a-z] [A-Z]) book 89 90 ${BOLD} -C, --comparison TYPE${OFF} 91 do iterative comparison analysis. This extends the total build time 92 considerably because the entire final system will rebuild itself 93 the number of times specified by ITERATIONS in common/config. 94 Types allowed are: 95 ICA = do ICA as designed by Greg Schafer 96 farce = do the farce analysis designed by Ken Moffat 97 both = perform both ICA and farce analysis 98 99 ${BOLD} -F, --fstab FILE${OFF} 100 use FILE as the /etc/fstab file for the ${BOLD}$(echo $PROGNAME | tr [a-z] [A-Z])${OFF} system. If not specified, 101 a default /etc/fstab file with dummy values is created. 102 103 ${BOLD} -K, --kernel-config FILE${OFF} 104 use the kernel configuration file specified in FILE to build the kernel. 105 if the file is not found, or if not specified, the kernel build is skipped. 106 107 ${BOLD} -M, --run-make${OFF} 108 run make on the generated Makefile 109 110 ${BOLD} -R --rebuild${OFF} 111 clean the build directory before performing any other task. The directory 112 is cleaned only if it was populated by a previous jhalfs-X run. 113 -EOF- 114 115 [[ ${PROGNAME} = "clfs" ]] && 116 cat <<- -EOF- 117 118 ${BOLD} -A, --arch ARCH ${OFF} 119 Select the TARGET architecture, valid selections are: 120 32bit builds 121 x86, i486, i586, ppc, mips, mipsel, sparc 122 64bit builds 123 x86_64-64, mips64-64, mipsel64-64, sparc64-64, alpha 124 64bit multi-lib 125 x86_64, mips64, mipsel64, sparc64, ppc64 126 127 ${BOLD} --boot-config FILE ${OFF} 128 The configuration file for the bootstrap kernel if method=boot 129 130 ${BOLD} --method BUILDMETHOD ${OFF} 131 Select the build method, chroot or boot 132 -EOF- 133 134 [[ ${PROGNAME} = "clfs2" ]] && 135 cat <<- -EOF- 136 137 ${BOLD} -A, --arch ARCH ${OFF} 138 Select the TARGET architecture, valid selections are: 139 32bit builds 140 arm 141 64bit builds 142 143 64bit multi-lib 144 -EOF- 145 146 [[ ${PROGNAME} = "hlfs" ]] && 147 cat <<- -EOF- 148 149 ${BOLD} --model STYLE ${OFF} 150 Select the library model for the HLFS system 151 Valid choices are: glibc or uclibc 152 -EOF- 153 154 cat <<- -EOF- 155 ${DD_BORDER} 156 -EOF- 157 exit 158 } 159 160 version=" 161 ${BOLD} \"jhalfs-X\"${OFF} builder tool (experimental) \$Rev$ 162 \$Date$ 163 164 ${BOLD} \"${PROGNAME}\"${OFF} script module 165 166 Written by George Boudreau, 167 Manuel Canales Esparcia, 168 Jeremy Huntwork 169 170 This program is published under the ${BOLD}Gnu General Public License, Version 2.${OFF} 171 " 5 set -e 172 6 173 7 … … 189 23 } 190 24 191 192 help="${nl_}Try '$0 --help' for more information."193 194 exit_missing_arg="\195 echo \"Option '\$1' requires an argument\" >&2196 echo \"\$help\" >&2197 exit 1"198 25 199 26 HEADER="# This file is automatically generated by jhalfs-X … … 475 302 *) echo "undefined progname $PROGNAME"; exit 1 476 303 esac 477 304 478 305 ( 479 306 cat << EOF
Note:
See TracChangeset
for help on using the changeset viewer.