Changeset f5f857d for LFS/master.sh
- Timestamp:
- 09/25/2007 09:34:03 PM (17 years ago)
- Branches:
- experimental
- Children:
- c5ae20a
- Parents:
- 5a4f6a7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LFS/master.sh
r5a4f6a7 rf5f857d 52 52 echo "umask 022" >> \$(LUSER_HOME)/.bashrc && \\ 53 53 echo "LFS=\$(MOUNT_PT)" >> \$(LUSER_HOME)/.bashrc && \\ 54 echo "SRCDIR=\$(MOUNT_PT)/sources" >> \$(LUSER_HOME)/.bashrc && \\55 54 echo "LC_ALL=POSIX" >> \$(LUSER_HOME)/.bashrc && \\ 56 55 echo "PATH=/tools/bin:/bin:/usr/bin" >> \$(LUSER_HOME)/.bashrc && \\ 57 56 echo "export LFS LC_ALL PATH" >> \$(LUSER_HOME)/.bashrc && \\ 58 57 echo "source $JHALFSDIR/envars" >> \$(LUSER_HOME)/.bashrc && \\ 59 chown \$(LUSER):\$(LGROUP) \$(LUSER_HOME)/.bashrc && \\ 60 touch envars && \\ 61 chown \$(LUSER) envars 58 chown \$(LUSER):\$(LGROUP) \$(LUSER_HOME)/.bashrc 62 59 @\$(call housekeeping) 63 60 EOF … … 96 93 esac 97 94 98 # Grab the package name, if the script is building a package99 name=`grep "^PACKAGE=" ${file} | sed -e 's@PACKAGE=@@'`100 101 95 # Set the dependency for the first target. 102 96 if [ -z $PREV ] ; then PREV=04_04-settingenvironment ; fi … … 109 103 # as a dependency. Also call the echo_message function. 110 104 LUSER_wrt_target "${this_script}" "$PREV" 111 112 # If $name isn't empty, we've got a package...113 if [ "$name" != "" ] ; then114 # If the testsuites must be run, initialize the log file115 [[ "$TEST" = "3" ]] && LUSER_wrt_test_log "${this_script}"116 # If using optimizations, write the instructions117 [[ "$OPTIMIZE" = "2" ]] && wrt_optimize "$name" && wrt_makeflags "$name"118 fi119 105 120 106 # Run the script. … … 176 162 esac 177 163 178 # Grab the name of the target.164 # Grab the name of the package, if any. 179 165 name=`grep "^PACKAGE=" ${file} | sed -e 's@PACKAGE=@@'` 180 166 … … 208 194 esac 209 195 210 # If $name isn't empty, we've got a package... 211 if [ "$name" != "" ] ; then 212 # Touch timestamp file if installed files logs will be created. 213 # But only for the firt build when running iterative builds. 214 if [ "${INSTALL_LOG}" = "y" ] && [ "x${N}" = "x" ] ; then 215 CHROOT_wrt_TouchTimestamp 216 fi 217 # If the testsuites must be run, initialize the log file 218 case $name in 219 binutils | gcc | glibc ) 220 [[ "$TEST" != "0" ]] && CHROOT_wrt_test_log "${this_script}" 221 ;; 222 * ) 223 [[ "$TEST" = "2" ]] || [[ "$TEST" = "3" ]] && CHROOT_wrt_test_log "${this_script}" 224 ;; 225 esac 226 # If using optimizations, write the instructions 227 [[ "$OPTIMIZE" != "0" ]] && wrt_optimize "$name" && wrt_makeflags "$name" 196 # Touch timestamp file if installed files logs will be created. 197 # But only for the firt build when running iterative builds. 198 if [ "$name" != "" ] && [ "${INSTALL_LOG}" = "y" ] && [ "x${N}" = "x" ] ; then 199 CHROOT_wrt_TouchTimestamp 228 200 fi 229 201 … … 363 335 sed -e "s@chroot@$CHROOT_LOC@" \ 364 336 -e 's@ \\\@ @g' \ 337 -e 's/ */ /g' \ 365 338 -e 's|\\$|&&|g' \ 366 339 -e 's|"$$LFS"|$(MOUNT_PT)|' \
Note:
See TracChangeset
for help on using the changeset viewer.