Changeset f28e4bd
- Timestamp:
- 08/05/2006 07:07:42 PM (18 years ago)
- Branches:
- experimental
- Children:
- 14c9622
- Parents:
- 206c894
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
CLFS2/master.sh
r206c894 rf28e4bd 202 202 final_system_Makefiles() { # 203 203 #-----------------------------# 204 # Set envars and scripts for iteration targets 205 LOGS="" # Start with an empty global LOGS envar 206 if [[ -z "$1" ]] ; then 207 local N="" 208 else 209 local N=-build_$1 210 local basicsystem="" 211 mkdir final-system$N 212 cp final-system/* final-system$N 213 for script in final-system$N/* ; do 214 # Overwrite existing symlinks, files, and dirs 215 sed -e 's/ln -sv/&f/g' \ 216 -e 's/mv -v/&f/g' \ 217 -e 's/mkdir -v/&p/g' -i ${script} 218 done 219 # Remove Bzip2 binaries before make install 220 sed -e 's@make install@rm -vf /usr/bin/bz*\n&@' -i final-system$N/*-bzip2 221 # Delete *old Readline libraries just after make install 222 sed -e 's@make install@&\nrm -v /lib/lib{history,readline}*old@' -i final-system$N/*-readline 223 fi 224 225 echo "${tab_}${GREEN}Processing... ${L_arrow}final system$N${R_arrow}" 226 227 for file in final-system$N/* ; do 204 echo "${tab_}${GREEN}Processing... ${L_arrow}final system${R_arrow}" 205 206 for file in final-system/* ; do 228 207 # Keep the script file name 229 208 this_script=`basename $file` … … 244 223 245 224 # Find the version of the command files, if it corresponds with the building of 246 # a specific package. We need this here to can skip scripts not needed for 247 # iterations rebuilds 225 # a specific package. 248 226 pkg_tarball=$(get_package_tarball_name $name) 249 250 if [[ "$pkg_tarball" = "" ]] && [[ -n "$N" ]] ; then251 case "${this_script}" in252 *stripping*) ;;253 *) continue ;;254 esac255 fi256 227 257 228 # Append each name of the script files to a list (this will become 258 229 # the names of the targets in the Makefile 259 basicsystem="$basicsystem ${this_script}${N}" 260 261 # Append each name of the script files to a list (this will become 262 # the names of the logs to be moved for each iteration) 263 LOGS="$LOGS ${this_script}" 230 basicsystem="$basicsystem ${this_script}" 264 231 265 232 #--------------------------------------------------------------------# … … 269 236 # Drop in the name of the target on a new line, and the previous target 270 237 # as a dependency. Also call the echo_message function. 271 wrt_target "${this_script} ${N}" "$PREV"238 wrt_target "${this_script}" "$PREV" 272 239 # 273 240 # If $pkg_tarball isn't empty, we've got a package... … … 290 257 # 291 258 # Keep the script file name for Makefile dependencies. 292 PREV=${this_script}${N} 293 # Set system_build envar for iteration targets 294 system_build=$basicsystem 259 PREV=${this_script} 295 260 done # for file in final-system/* ... 296 261 } … … 411 376 fi 412 377 ;; 413 *chowning) wrt_RunAsRoot "${this_script}" "${file}" 378 *chowning) wrt_RunAsRoot "${this_script}" "${file}" 414 379 ;; 415 *) wrt_RunAsUser "${this_script}" "${file}" 380 *) wrt_RunAsUser "${this_script}" "${file}" 416 381 ;; 417 382 esac … … 490 455 rm -rf ./{clfs2-commands,logs,Makefile,*.xsl,makefile-functions,packages,patches} 491 456 492 clean: 457 clean: 493 458 494 459 restart: -
common/func_validate_configs.sh
r206c894 rf28e4bd 89 89 local -r hlfs_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE GETPKG RUNMAKE MODEL GRSECURITY_HOST TEST BOMB_TEST OPTIMIZE REPORT COMPARE RUN_ICA RUN_FARCE ITERATIONS STRIP FSTAB CONFIG GETKERNEL KEYMAP PAGE TIMEZONE LANG LC_ALL LUSER LGROUP" 90 90 local -r clfs_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE GETPKG RUNMAKE METHOD ARCH TARGET TEST BOMB_TEST OPTIMIZE REPORT COMPARE RUN_ICA RUN_FARCE ITERATIONS STRIP FSTAB BOOT_CONFIG CONFIG GETKERNEL KEYMAP VIMLANG PAGE TIMEZONE LANG LUSER LGROUP" 91 local -r clfs2_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE GETPKG RUNMAKE ARCH TARGET OPTIMIZE REPORT COMPARE RUN_ICA RUN_FARCE ITERATIONSSTRIP FSTAB CONFIG GETKERNEL KEYMAP VIMLANG PAGE TIMEZONE LANG LUSER LGROUP"91 local -r clfs2_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE GETPKG RUNMAKE ARCH TARGET OPTIMIZE REPORT STRIP FSTAB CONFIG GETKERNEL KEYMAP VIMLANG PAGE TIMEZONE LANG LUSER LGROUP" 92 92 local -r lfs_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE GETPKG RUNMAKE TEST BOMB_TEST OPTIMIZE REPORT COMPARE RUN_ICA RUN_FARCE ITERATIONS STRIP FSTAB CONFIG GETKERNEL VIMLANG PAGE TIMEZONE LANG LUSER LGROUP" 93 93
Note:
See TracChangeset
for help on using the changeset viewer.