- Timestamp:
- 08/05/2006 06:53:03 PM (18 years ago)
- Branches:
- 2.3, 2.3.x, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
- Children:
- f3fcecc
- Parents:
- cfaeeb4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
CLFS2/master.sh
rcfaeeb4 r2dd88c4 238 238 final_system_Makefiles() { # 239 239 #-----------------------------# 240 # Set envars and scripts for iteration targets 241 LOGS="" # Start with an empty global LOGS envar 242 if [[ -z "$1" ]] ; then 243 local N="" 244 else 245 local N=-build_$1 246 local basicsystem="" 247 mkdir final-system$N 248 cp final-system/* final-system$N 249 for script in final-system$N/* ; do 250 # Overwrite existing symlinks, files, and dirs 251 sed -e 's/ln -sv/&f/g' \ 252 -e 's/mv -v/&f/g' \ 253 -e 's/mkdir -v/&p/g' -i ${script} 254 done 255 # Remove Bzip2 binaries before make install 256 sed -e 's@make install@rm -vf /usr/bin/bz*\n&@' -i final-system$N/*-bzip2 257 # Delete *old Readline libraries just after make install 258 sed -e 's@make install@&\nrm -v /lib/lib{history,readline}*old@' -i final-system$N/*-readline 259 fi 260 261 echo "${tab_}${GREEN}Processing... ${L_arrow}final system$N${R_arrow}" 262 263 for file in final-system$N/* ; do 240 echo "${tab_}${GREEN}Processing... ${L_arrow}final system${R_arrow}" 241 242 for file in final-system/* ; do 264 243 # Keep the script file name 265 244 this_script=`basename $file` … … 280 259 281 260 # Find the version of the command files, if it corresponds with the building of 282 # a specific package. We need this here to can skip scripts not needed for 283 # iterations rebuilds 261 # a specific package. 284 262 pkg_tarball=$(get_package_tarball_name $name) 285 286 if [[ "$pkg_tarball" = "" ]] && [[ -n "$N" ]] ; then287 case "${this_script}" in288 *stripping*) ;;289 *) continue ;;290 esac291 fi292 263 293 264 # Append each name of the script files to a list (this will become 294 265 # the names of the targets in the Makefile 295 basicsystem="$basicsystem ${this_script}${N}" 296 297 # Append each name of the script files to a list (this will become 298 # the names of the logs to be moved for each iteration) 299 LOGS="$LOGS ${this_script}" 266 basicsystem="$basicsystem ${this_script}" 300 267 301 268 #--------------------------------------------------------------------# … … 305 272 # Drop in the name of the target on a new line, and the previous target 306 273 # as a dependency. Also call the echo_message function. 307 wrt_target "${this_script} ${N}" "$PREV"274 wrt_target "${this_script}" "$PREV" 308 275 # 309 276 # If $pkg_tarball isn't empty, we've got a package... … … 326 293 # 327 294 # Keep the script file name for Makefile dependencies. 328 PREV=${this_script}${N} 329 # Set system_build envar for iteration targets 330 system_build=$basicsystem 295 PREV=${this_script} 331 296 done # for file in final-system/* ... 332 297 } … … 447 412 fi 448 413 ;; 449 *) wrt_ExecuteAsUser "clfs" "${this_script}" "${file}" 414 *) wrt_ExecuteAsUser "clfs" "${this_script}" "${file}" 450 415 ;; 451 416 esac … … 522 487 rm -rf ./{clfs2-commands,logs,Makefile,*.xsl,makefile-functions,packages,patches} 523 488 524 clean: 489 clean: 525 490 526 491 restart:
Note:
See TracChangeset
for help on using the changeset viewer.