Changeset 9199a13 for CLFS/master.sh
- Timestamp:
- 06/10/2006 04:48:25 PM (18 years ago)
- Branches:
- experimental
- Children:
- 966cb20
- Parents:
- e35e794
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
CLFS/master.sh
re35e794 r9199a13 21 21 023-creatingtoolsdir: 22 22 @\$(call echo_message, Building) 23 @mkdir -v\$(MOUNT_PT)/tools && \\24 rm -f v/tools && \\25 ln -s v\$(MOUNT_PT)/tools /23 @mkdir \$(MOUNT_PT)/tools && \\ 24 rm -f /tools && \\ 25 ln -s \$(MOUNT_PT)/tools / 26 26 @if [ ! -d \$(MOUNT_PT)/sources ]; then \\ 27 27 mkdir \$(MOUNT_PT)/sources; \\ 28 28 fi; 29 29 @chmod a+wt \$(MOUNT_PT)/sources && \\ 30 touch \$@ 30 touch \$@ && \\ 31 echo " "\$(BOLD)Target \$(BLUE)\$@ \$(BOLD)OK && \\ 32 echo --------------------------------------------------------------------------------\$(WHITE) 31 33 32 34 024-creatingcrossdir: 023-creatingtoolsdir 33 35 @mkdir -v \$(MOUNT_PT)/cross-tools && \\ 34 rm -fv /cross-tools && \\ 35 ln -sv \$(MOUNT_PT)/cross-tools / 36 @touch \$@ 36 rm -f /cross-tools && \\ 37 ln -s \$(MOUNT_PT)/cross-tools / 38 @touch \$@ && \\ 39 echo " "\$(BOLD)Target \$(BLUE)\$@ \$(BOLD)OK && \\ 40 echo --------------------------------------------------------------------------------\$(WHITE) 37 41 38 42 025-addinguser: 024-creatingcrossdir … … 48 52 chown lfs \$(MOUNT_PT)/cross-tools && \\ 49 53 chown lfs \$(MOUNT_PT)/sources && \\ 50 touch \$@ 54 touch \$@ && \\ 55 echo " "\$(BOLD)Target \$(BLUE)\$@ \$(BOLD)OK && \\ 56 echo --------------------------------------------------------------------------------\$(WHITE) 51 57 52 58 026-settingenvironment: 025-addinguser 53 59 @\$(call echo_message, Building) 54 60 @if [ -f /home/lfs/.bashrc -a ! -f /home/lfs/.bashrc.XXX ]; then \\ 55 mv -v/home/lfs/.bashrc /home/lfs/.bashrc.XXX; \\61 mv /home/lfs/.bashrc /home/lfs/.bashrc.XXX; \\ 56 62 fi; 57 63 @if [ -f /home/lfs/.bash_profile -a ! -f /home/lfs/.bash_profile.XXX ]; then \\ 58 mv -v/home/lfs/.bash_profile /home/lfs/.bash_profile.XXX; \\64 mv /home/lfs/.bash_profile /home/lfs/.bash_profile.XXX; \\ 59 65 fi; 60 66 @echo "set +h" > /home/lfs/.bashrc && \\ … … 74 80 @chown lfs:lfs /home/lfs/.bashrc && \\ 75 81 touch envars && \\ 76 touch \$@ 82 touch \$@ && \\ 83 echo " "\$(BOLD)Target \$(BLUE)\$@ \$(BOLD)OK && \\ 84 echo --------------------------------------------------------------------------------\$(WHITE) 77 85 EOF 78 86 ) >> $MKFILE.tmp … … 139 147 # 140 148 # Include a touch of the target name so make can check if it's already been made. 141 echo -e '\t@touch $@' >> $MKFILE.tmp149 wrt_touch 142 150 # 143 151 #--------------------------------------------------------------------# … … 192 200 # 193 201 # Include a touch of the target name so make can check if it's already been made. 194 echo -e '\t@touch $@' >> $MKFILE.tmp202 wrt_touch 195 203 # 196 204 #--------------------------------------------------------------------# … … 276 284 # 277 285 # Include a touch of the target name so make can check if it's already been made. 278 echo -e '\t@touch $@' >> $MKFILE.tmp286 wrt_touch 279 287 # 280 288 #--------------------------------------------------------------------# … … 342 350 # 343 351 # Include a touch of the target name so make can check if it's already been made. 344 echo -e '\t@touch $@' >> $MKFILE.tmp352 wrt_touch 345 353 # 346 354 #--------------------------------------------------------------------# … … 396 404 # 397 405 # Include a touch of the target name so make can check if it's already been made. 398 echo -e '\t@touch $@' >> $MKFILE.tmp406 wrt_touch 399 407 # 400 408 #--------------------------------------------------------------------# … … 451 459 # 452 460 # Include a touch of the target name so make can check if it's already been made. 453 echo -e '\t@touch $@' >> $MKFILE.tmp461 wrt_touch 454 462 # 455 463 #--------------------------------------------------------------------# … … 561 569 # 562 570 # Include a touch of the target name so make can check if it's already been made. 563 echo -e '\t@touch $@' >> $MKFILE.tmp571 wrt_touch 564 572 # 565 573 #--------------------------------------------------------------------# … … 674 682 # 675 683 # Include a touch of the target name so make can check if it's already been made. 676 echo -e '\t@touch $@' >> $MKFILE.tmp684 wrt_touch 677 685 # 678 686 #--------------------------------------------------------------------# … … 736 744 # 737 745 # Include a touch of the target name so make can check if it's already been made. 738 echo -e '\t@touch $@' >> $MKFILE.tmp746 wrt_touch 739 747 # 740 748 #--------------------------------------------------------------------# … … 797 805 # 798 806 # Include a touch of the target name so make can check if it's already been made. 799 echo -e '\t@touch $@' >> $MKFILE.tmp807 wrt_touch 800 808 # 801 809 #--------------------------------------------------------------------# … … 871 879 # 872 880 # Include a touch of the target name so make can check if it's already been made. 873 echo -e '\t@touch $@' >> $MKFILE.tmp881 wrt_touch 874 882 # 875 883 #--------------------------------------------------------------------# … … 951 959 # 952 960 # Include a touch of the target name so make can check if it's already been made. 953 echo -e '\t@touch $@' >> $MKFILE.tmp961 wrt_touch 954 962 # 955 963 #--------------------------------------------------------------------# … … 1091 1099 @\$(call echo_message, Building) 1092 1100 @if [ -f /home/lfs/.bashrc.XXX ]; then \\ 1093 mv -f v/home/lfs/.bashrc.XXX /home/lfs/.bashrc; \\1101 mv -f /home/lfs/.bashrc.XXX /home/lfs/.bashrc; \\ 1094 1102 fi; 1095 1103 @if [ -f /home/lfs/.bash_profile.XXX ]; then \\ 1096 mv -v/home/lfs/.bash_profile.XXX /home/lfs/.bash_profile; \\1104 mv /home/lfs/.bash_profile.XXX /home/lfs/.bash_profile; \\ 1097 1105 fi; 1098 1106 @chown lfs:lfs /home/lfs/.bash* && \\ 1099 touch \$@ 1107 touch \$@ && \\ 1108 echo " "\$(BOLD)Target \$(BLUE)\$@ \$(BOLD)OK && \\ 1109 echo --------------------------------------------------------------------------------\$(WHITE) 1100 1110 1101 1111 do-housekeeping: 1102 -umount \$(MOUNT_PT)/dev/pts1103 -umount \$(MOUNT_PT)/dev/shm1104 -umount \$(MOUNT_PT)/dev1105 -umount \$(MOUNT_PT)/sys1106 -umount \$(MOUNT_PT)/proc1107 -if [ ! -f user-lfs-exist ]; then \\1112 @-umount \$(MOUNT_PT)/dev/pts 1113 @-umount \$(MOUNT_PT)/dev/shm 1114 @-umount \$(MOUNT_PT)/dev 1115 @-umount \$(MOUNT_PT)/sys 1116 @-umount \$(MOUNT_PT)/proc 1117 @-if [ ! -f user-lfs-exist ]; then \\ 1108 1118 userdel lfs; \\ 1109 1119 rm -rf /home/lfs; \\ … … 1177 1187 fi; 1178 1188 @chown lfs:lfs /home/lfs/.bash* && \\ 1179 touch \$@ 1189 touch \$@ && \\ 1190 echo " "\$(BOLD)Target \$(BLUE)\$@ \$(BOLD)OK && \\ 1191 echo --------------------------------------------------------------------------------\$(WHITE) 1180 1192 1181 1193
Note:
See TracChangeset
for help on using the changeset viewer.