Changeset a160d86 for LFS/master.sh
- Timestamp:
- 06/20/2006 09:14:44 PM (18 years ago)
- Branches:
- 1.0, 2.3, 2.3.x, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
- Children:
- ddde18e
- Parents:
- c044e3c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LFS/master.sh
rc044e3c ra160d86 107 107 # Find the version of the command files, if it corresponds with the building of 108 108 # a specific package 109 vrs=`grep "^$name-version" $JHALFSDIR/packages | sed -e 's/.* //' -e 's/"//g'` 110 111 # If $vrs isn't empty, we've got a package... 112 if [ "$vrs" != "" ] ; then 113 if [ "$name" = "tcl" ] ; then 114 FILE="$name$vrs-src.tar.*" 115 else 116 FILE="$name-$vrs.tar.*" 117 fi 118 109 pkg_tarball=$(get_package_tarball_name $name) 110 111 # If $pkg_tarball isn't empty, we've got a package... 112 if [ "$pkg_tarball" != "" ] ; then 119 113 # Insert instructions for unpacking the package and to set the PKGDIR variable. 120 wrt_unpack "$ FILE"114 wrt_unpack "$pkg_tarball" 121 115 # If the testsuites must be run, initialize the log file 122 116 [[ "$TEST" = "3" ]] && wrt_test_log "${this_script}" … … 135 129 # Remove the build directory(ies) except if the package build fails 136 130 # (so we can review config.cache, config.log, etc.) 137 if [ "$ vrs" != "" ] ; then131 if [ "$pkg_tarball" != "" ] ; then 138 132 wrt_remove_build_dirs "$name" 139 133 fi … … 196 190 # a specific package. We need this here to can skip scripts not needed for 197 191 # iterations rebuilds 198 vrs=`grep "^$name-version" $JHALFSDIR/packages | sed -e 's/.* //' -e 's/"//g'`199 200 if [[ "$ vrs" = "" ]] && [[ -n "$N" ]] ; then192 pkg_tarball=$(get_package_tarball_name $name) 193 194 if [[ "$pkg_tarball" = "" ]] && [[ -n "$N" ]] ; then 201 195 case "${this_script}" in 202 196 *stripping*) ;; … … 221 215 wrt_target "${this_script}${N}" "$PREV" 222 216 223 # If $ vrsisn't empty, we've got a package...217 # If $pkg_tarball isn't empty, we've got a package... 224 218 # Insert instructions for unpacking the package and changing directories 225 if [ "$vrs" != "" ] ; then 226 FILE="$name-$vrs.tar.*" 227 wrt_unpack2 "$FILE" 219 if [ "$pkg_tarball" != "" ] ; then 220 wrt_unpack2 "$pkg_tarball" 228 221 # If the testsuites must be run, initialize the log file 229 222 case $name in … … 247 240 248 241 # Remove the build directory(ies) except if the package build fails. 249 if [ "$ vrs" != "" ] ; then242 if [ "$pkg_tarball" != "" ] ; then 250 243 wrt_remove_build_dirs "$name" 251 244 fi … … 305 298 case "${this_script}" in 306 299 *bootscripts) 307 vrs=`grep "^lfs-bootscripts-version" $JHALFSDIR/packages | sed -e 's/.* //' -e 's/"//g'`308 FILE="lfs-bootscripts-$vrs.tar.*"309 wrt_unpack2 "$FILE"300 name="lfs-bootscripts" 301 pkg_tarball=$(get_package_tarball_name $name) 302 wrt_unpack2 "$pkg_tarball" 310 303 ;; 311 304 *kernel) 312 vrs=`grep "^linux-version" $JHALFSDIR/packages | sed -e 's/.* //' -e 's/"//g'`313 FILE="linux-$vrs.tar.*"314 wrt_unpack2 "$FILE"305 name="linux" 306 pkg_tarball=$(get_package_tarball_name $name) 307 wrt_unpack2 "$pkg_tarball" 315 308 ;; 316 309 esac … … 503 496 mount -vt proc proc \$(MOUNT_PT)/proc;\\ 504 497 fi;\\ 505 if ! mount -l | grep " $\(MOUNT_PT)/sys" >/dev/null ; then \\498 if ! mount -l | grep "\$(MOUNT_PT)/sys" >/dev/null ; then \\ 506 499 mount -vt sysfs sysfs \$(MOUNT_PT)/sys;\\ 507 500 fi;\\
Note:
See TracChangeset
for help on using the changeset viewer.