Changeset 10c8b78
- Timestamp:
- 12/05/2006 03:25:00 PM (18 years ago)
- Branches:
- 2.3, 2.3.x, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
- Children:
- 2512414
- Parents:
- 6bb080e
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
CLFS/master.sh
r6bb080e r10c8b78 462 462 -e 's/mv -v/&f/g' \ 463 463 -e 's/mkdir -v/&p/g' -i ${script} 464 # Rename the scripts 465 mv ${script} ${script}$N 464 466 done 465 467 # Remove Bzip2 binaries before make install 466 sed -e 's@make install@rm -vf /usr/bin/bz*\n&@' -i final-system$N/*-bzip2 468 sed -e 's@make install@rm -vf /usr/bin/bz*\n&@' -i final-system$N/*-bzip2$N 467 469 # Delete *old Readline libraries just after make install 468 sed -e 's@make install@&\nrm -v /lib/lib{history,readline}*old@' -i final-system$N/*-readline 470 sed -e 's@make install@&\nrm -v /lib/lib{history,readline}*old@' -i final-system$N/*-readline$N 469 471 fi 470 472 … … 492 494 -e 's@-64@@' \ 493 495 -e 's@64@@' \ 494 -e 's@n32@@'` 496 -e 's@n32@@' \ 497 -e 's,'$N',,'` 495 498 496 499 # Find the version of the command files, if it corresponds with the building of … … 508 511 # Append each name of the script files to a list (this will become 509 512 # the names of the targets in the Makefile 510 basicsystem="$basicsystem ${this_script} ${N}"513 basicsystem="$basicsystem ${this_script}" 511 514 512 515 #--------------------------------------------------------------------# … … 516 519 # Drop in the name of the target on a new line, and the previous target 517 520 # as a dependency. Also call the echo_message function. 518 CHROOT_wrt_target "${this_script} ${N}" "$PREV"521 CHROOT_wrt_target "${this_script}" "$PREV" 519 522 520 523 # If $pkg_tarball isn't empty, we've got a package... … … 524 527 case $name in 525 528 binutils | gcc | glibc ) 526 [[ "$TEST" != "0" ]] && CHROOT_wrt_test_log "${this_script} ${N}"529 [[ "$TEST" != "0" ]] && CHROOT_wrt_test_log "${this_script}" 527 530 ;; 528 531 * ) 529 [[ "$TEST" = "2" ]] || [[ "$TEST" = "3" ]] && CHROOT_wrt_test_log "${this_script} ${N}"532 [[ "$TEST" = "2" ]] || [[ "$TEST" = "3" ]] && CHROOT_wrt_test_log "${this_script}" 530 533 ;; 531 534 esac … … 546 549 # 547 550 # Keep the script file name for Makefile dependencies. 548 PREV=${this_script} ${N}551 PREV=${this_script} 549 552 # Set system_build envar for iteration targets 550 553 system_build=$basicsystem -
HLFS/master.sh
r6bb080e r10c8b78 20 20 local remove_existing 21 21 22 tc_phase=`echo $toolchain | sed -e 's@[0-9]\{3\}-@@' -e 's@-toolchain@@' `22 tc_phase=`echo $toolchain | sed -e 's@[0-9]\{3\}-@@' -e 's@-toolchain@@' -e 's,'$N',,'` 23 23 case $tc_phase in 24 24 embryo | \ … … 269 269 # Overwrite existing symlinks, files, and dirs 270 270 sed -e 's/ln -s /ln -sf /g' \ 271 -e 's/^mv /&-f/g' -i ${script} 271 -e 's/^mv /&-f /g' \ 272 -e 's/mkdir -v/&p/g' -i ${script} 273 # Rename the scripts 274 mv ${script} ${script}$N 272 275 done 273 276 # Remove Bzip2 binaries before make install 274 sed -e 's@make install@rm -vf /usr/bin/bz*\n&@' -i chapter06$N/*-bzip2 277 sed -e 's@make install@rm -vf /usr/bin/bz*\n&@' -i chapter06$N/*-bzip2$N 275 278 # Fix how Module-Init-Tools do the install target 276 sed -e 's@make install@make INSTALL=install install@' -i chapter06$N/*-module-init-tools 277 # Delete *old Readline libraries just after make install 278 sed -e 's@make install@&\nrm -v /lib/lib{history,readline}*old@' -i chapter06$N/*-readline 279 sed -e 's@make install@make INSTALL=install install@' -i chapter06$N/*-module-init-tools$N 279 280 # Don't readd already existing groups 280 sed -e '/groupadd/d' -i chapter06$N/*-udev 281 sed -e '/groupadd/d' -i chapter06$N/*-udev$N 281 282 fi 282 283 … … 297 298 298 299 # Grab the name of the target 299 name=`echo $this_script | sed -e 's@[0-9]\{3\}-@@' `300 name=`echo $this_script | sed -e 's@[0-9]\{3\}-@@' -e 's,'$N',,'` 300 301 301 302 case $name in … … 316 317 # Append each name of the script files to a list (this will become 317 318 # the names of the targets in the Makefile 318 chapter6="$chapter6 ${this_script} ${N}"319 chapter6="$chapter6 ${this_script}" 319 320 320 321 … … 326 327 # as a dependency. Also call the echo_message function. 327 328 if [[ ${name} = "butterfly-toolchain" ]]; then 328 CHROOT_wrt_target "${this_script} ${N}" "$PREV"329 CHROOT_wrt_target "${this_script}" "$PREV" 329 330 process_toolchain "${this_script}" "${file}" 330 331 wrt_touch … … 333 334 fi 334 335 335 CHROOT_wrt_target "${this_script} ${N}" "$PREV"336 CHROOT_wrt_target "${this_script}" "$PREV" 336 337 337 338 # If $pkg_tarball isn't empty, we've got a package... … … 342 343 # butterfly-toolchain tests are enabled in 'process_tookchain' function 343 344 case $name in 344 glibc ) [[ "$TEST" != "0" ]] && CHROOT_wrt_test_log "${this_script} ${N}"345 glibc ) [[ "$TEST" != "0" ]] && CHROOT_wrt_test_log "${this_script}" 345 346 ;; 346 * ) [[ "$TEST" > "1" ]] && CHROOT_wrt_test_log "${this_script} ${N}"347 * ) [[ "$TEST" > "1" ]] && CHROOT_wrt_test_log "${this_script}" 347 348 ;; 348 349 esac … … 374 375 375 376 # Keep the script file name for Makefile dependencies. 376 PREV=${this_script} ${N}377 PREV=${this_script} 377 378 # Set system_build envar for iteration targets 378 379 system_build=$chapter6 -
LFS/master.sh
r6bb080e r10c8b78 178 178 -e 's/mv -v/&f/g' \ 179 179 -e 's/mkdir -v/&p/g' -i ${script} 180 # Rename the scripts 181 mv ${script} ${script}$N 180 182 done 181 183 # Remove Bzip2 binaries before make install 182 sed -e 's@make install@rm -vf /usr/bin/bz*\n&@' -i chapter06$N/*-bzip2 184 sed -e 's@make install@rm -vf /usr/bin/bz*\n&@' -i chapter06$N/*-bzip2$N 183 185 fi 184 186 … … 197 199 198 200 # Grab the name of the target. 199 name=`echo ${this_script} | sed -e 's@[0-9]\{3\}-@@' `201 name=`echo ${this_script} | sed -e 's@[0-9]\{3\}-@@' -e 's,'$N',,'` 200 202 201 203 # Find the version of the command files, if it corresponds with the building of … … 216 218 case "${this_script}" in 217 219 *kernfs) runasroot="$runasroot ${this_script}" ;; 218 *) chapter6="$chapter6 ${this_script} ${N}" ;;220 *) chapter6="$chapter6 ${this_script}" ;; 219 221 esac 220 222 … … 229 231 case "${this_script}" in 230 232 *kernfs) LUSER_wrt_target "${this_script}" "$PREV" ;; 231 *) CHROOT_wrt_target "${this_script} ${N}" "$PREV" ;;233 *) CHROOT_wrt_target "${this_script}" "$PREV" ;; 232 234 esac 233 235 … … 239 241 case $name in 240 242 binutils | gcc | glibc ) 241 [[ "$TEST" != "0" ]] && CHROOT_wrt_test_log "${this_script} ${N}"243 [[ "$TEST" != "0" ]] && CHROOT_wrt_test_log "${this_script}" 242 244 ;; 243 245 * ) 244 [[ "$TEST" = "2" ]] || [[ "$TEST" = "3" ]] && CHROOT_wrt_test_log "${this_script} ${N}"246 [[ "$TEST" = "2" ]] || [[ "$TEST" = "3" ]] && CHROOT_wrt_test_log "${this_script}" 245 247 ;; 246 248 esac … … 270 272 271 273 # Keep the script file name for Makefile dependencies. 272 PREV=${this_script} ${N}274 PREV=${this_script} 273 275 # Set system_build envar for iteration targets 274 276 system_build=$chapter6 -
common/common-functions
r6bb080e r10c8b78 56 56 # Clean the build directory 57 57 echo -n "Cleaning $BUILDDIR ..." 58 sudo rm -rf $BUILDDIR/{bin,boot, dev,etc,home,lib,media,mnt,opt,proc,root,sbin,srv,sys,tmp,tools,cross-tools,usr,var}58 sudo rm -rf $BUILDDIR/{bin,boot,etc,home,lib,media,mnt,opt,root,sbin,srv,tmp,tools,cross-tools,usr,var} 59 59 echo "done" 60 60 echo -n "Cleaning $JHALFSDIR ..." -
common/create-sbu_du-report.sh
r6bb080e r10c8b78 20 20 # If there is iteration logs directories, copy the logs inside iteration-1 21 21 # to the top level dir 22 [[ -d "$LOGSDIR"/ iteration-1 ]] && \23 cp $LOGSDIR/ iteration-1/* $LOGSDIR22 [[ -d "$LOGSDIR"/build_1 ]] && \ 23 cp $LOGSDIR/build_1/* $LOGSDIR 24 24 25 25 # Set the report file -
common/libs/func_compare.sh
r6bb080e r10c8b78 14 14 CHROOT_wrt_target "$ITERATION" "$PREV" 15 15 wrt_compare_work "$ITERATION" "$PREV_IT" 16 wrt_logs "$N" 16 17 wrt_touch 17 18 PREV_IT=$ITERATION … … 47 48 fi 48 49 fi 49 50 echo -e "\nsystem_build_$RUN: $PREV_IT $system_build" >> $MKFILE.tmp51 50 } 52 51 … … 107 106 echo -e "\t@extras/farce --directory $OUTPUT $PREDIR $PREFILE $ITEDIR $ITEFILE >>logs/\$@ 2>&1" >> $MKFILE.tmp 108 107 } 108 109 #----------------------------------# 110 wrt_logs() { # 111 #----------------------------------# 112 local build=build_$1 113 local file 114 115 ( 116 cat << EOF 117 @cd logs && \\ 118 mkdir $build && \\ 119 mv -f ${system_build} $build && \\ 120 if [ ! $build = build_1 ] ; then \\ 121 cd $build && \\ 122 for file in \`ls .\` ; do \\ 123 mv -f \$\$file \`echo \$\$file | sed -e 's,-$build,,'\` ; \\ 124 done ; \\ 125 fi ; 126 @cd /\$(SCRIPT_ROOT) 127 @if [ -d test-logs ] ; then \\ 128 cd test-logs && \\ 129 mkdir $build && \\ 130 mv -f ${system_build} $build && \\ 131 if [ ! $build = build_1 ] ; then \\ 132 cd $build && \\ 133 for file in \`ls .\` ; do \\ 134 mv -f \$\$file \`echo \$\$file | sed -e 's,-$build,,'\` ; \\ 135 done ; \\ 136 fi ; \\ 137 cd /\$(SCRIPT_ROOT) ; \\ 138 fi ; 139 EOF 140 ) >> $MKFILE.tmp 141 } -
common/libs/func_wrt_Makefile
r6bb080e r10c8b78 187 187 cat << EOF 188 188 @echo "export TEST_LOG=\$(TESTLOGDIR)/$TESTLOGFILE" >> envars && \\ 189 echo '\$(nl_)\`date\`\$(nl_)'>\$(TESTLOGDIR)/\$@189 echo "\$(nl_)\`date\`\$(nl_)" >\$(TESTLOGDIR)/\$@ 190 190 EOF 191 191 ) >> $MKFILE.tmp
Note:
See TracChangeset
for help on using the changeset viewer.