Renamed user-{c,h}lfs-exist to luser-exist.

Renamed restore-{c,h}lfs-env to restore-luser-env.
This commit is contained in:
Manuel Canales Esparcia 2006-08-06 10:59:36 +00:00
parent ef87eed02e
commit 30737ea8d4
4 changed files with 32 additions and 32 deletions

View file

@ -45,7 +45,7 @@ cat << EOF
groupadd \$(LGROUP); \\ groupadd \$(LGROUP); \\
useradd -s /bin/bash -g \$(LGROUP) -m -k /dev/null \$(LUSER); \\ useradd -s /bin/bash -g \$(LGROUP) -m -k /dev/null \$(LUSER); \\
else \\ else \\
touch user-clfs-exist; \\ touch luser-exist; \\
fi; fi;
@chown \$(LUSER) \$(MOUNT_PT) && \\ @chown \$(LUSER) \$(MOUNT_PT) && \\
chown \$(LUSER) \$(MOUNT_PT)/tools && \\ chown \$(LUSER) \$(MOUNT_PT)/tools && \\
@ -1053,7 +1053,7 @@ chapter3: chapter2 $cross_tools
chapter4: chapter3 $temptools chapter4: chapter3 $temptools
chapter5: chapter4 $chroottools $testsuitetools chapter5: chapter4 $chroottools restore-luser-env $testsuitetools
chapter6: chapter5 $basicsystem chapter6: chapter5 $basicsystem
@ -1070,7 +1070,7 @@ restart:
@echo "This feature does not exist for the CLFS makefile. (yet)" @echo "This feature does not exist for the CLFS makefile. (yet)"
clean-chapter2: clean-chapter2:
-if [ ! -f user-clfs-exist ]; then \\ -if [ ! -f luser-exist ]; then \\
userdel \$(LUSER); \\ userdel \$(LUSER); \\
rm -rf /home/\$(LUSER); \\ rm -rf /home/\$(LUSER); \\
fi; fi;
@ -1078,12 +1078,12 @@ clean-chapter2:
rm -f /tools rm -f /tools
rm -rf \$(MOUNT_PT)/cross-tools rm -rf \$(MOUNT_PT)/cross-tools
rm -f /cross-tools rm -f /cross-tools
rm -f envars user-clfs-exist rm -f envars luser-exist
rm -f 02* logs/02*.log rm -f 02* logs/02*.log
clean-chapter3: clean-chapter3:
rm -rf \$(MOUNT_PT)/tools/* rm -rf \$(MOUNT_PT)/tools/*
rm -f $cross_tools restore-clfs-env sources-dir rm -f $cross_tools sources-dir
cd logs && rm -f $cross_tools && cd .. cd logs && rm -f $cross_tools && cd ..
clean-chapter4: clean-chapter4:
@ -1097,7 +1097,7 @@ clean-chapter4:
cd logs && rm -f $temptools && cd .. cd logs && rm -f $temptools && cd ..
restore-clfs-env: restore-luser-env:
@\$(call echo_message, Building) @\$(call echo_message, Building)
@if [ -f /home/\$(LUSER)/.bashrc.XXX ]; then \\ @if [ -f /home/\$(LUSER)/.bashrc.XXX ]; then \\
mv -f /home/\$(LUSER)/.bashrc.XXX /home/\$(LUSER)/.bashrc; \\ mv -f /home/\$(LUSER)/.bashrc.XXX /home/\$(LUSER)/.bashrc; \\
@ -1116,7 +1116,7 @@ do-housekeeping:
@-umount \$(MOUNT_PT)/dev @-umount \$(MOUNT_PT)/dev
@-umount \$(MOUNT_PT)/sys @-umount \$(MOUNT_PT)/sys
@-umount \$(MOUNT_PT)/proc @-umount \$(MOUNT_PT)/proc
@-if [ ! -f user-clfs-exist ]; then \\ @-if [ ! -f luser-exist ]; then \\
userdel \$(LUSER); \\ userdel \$(LUSER); \\
rm -rf /home/\$(LUSER); \\ rm -rf /home/\$(LUSER); \\
fi; fi;
@ -1136,7 +1136,7 @@ makeboot: 023-creatingtoolsdir 024-creatingcrossdir 025-addinguser 026-settingen
$cross_tools\ $cross_tools\
$temptools \ $temptools \
$chroottools \ $chroottools \
$boottools $boottools restore-luser-env
@\$(call echo_boot_finished,$VERSION) @\$(call echo_boot_finished,$VERSION)
makesys: $testsuitetools $basicsystem $bootscripttools $bootabletools makesys: $testsuitetools $basicsystem $bootscripttools $bootabletools
@ -1152,7 +1152,7 @@ restart:
@echo "This feature does not exist for the CLFS makefile. (yet)" @echo "This feature does not exist for the CLFS makefile. (yet)"
clean-jhalfs: clean-jhalfs:
-if [ ! -f user-clfs-exist ]; then \\ -if [ ! -f luser-exist ]; then \\
userdel \$(LUSER); \\ userdel \$(LUSER); \\
rm -rf /home/\$(LUSER); \\ rm -rf /home/\$(LUSER); \\
fi; fi;
@ -1160,13 +1160,13 @@ clean-jhalfs:
rm -f /tools rm -f /tools
rm -rf \$(MOUNT_PT)/cross-tools rm -rf \$(MOUNT_PT)/cross-tools
rm -f /cross-tools rm -f /cross-tools
rm -f envars user-clfs-exist rm -f envars luser-exist
rm -f 02* logs/02*.log rm -f 02* logs/02*.log
clean-makeboot: clean-makeboot:
rm -rf /tools/* rm -rf /tools/*
rm -f $cross_tools && rm -f $temptools && rm -f $chroottools && rm -f $boottools rm -f $cross_tools && rm -f $temptools && rm -f $chroottools && rm -f $boottools
rm -f restore-clfs-env sources-dir rm -f restore-luser-env sources-dir
cd logs && rm -f $cross_tools && rm -f $temptools && rm -f $chroottools && rm -f $boottools && cd .. cd logs && rm -f $cross_tools && rm -f $temptools && rm -f $chroottools && rm -f $boottools && cd ..
clean-makesys: clean-makesys:
@ -1182,7 +1182,7 @@ clean-makesys:
cd logs && rm -f $basicsystem && rm -f $bootscripttools && rm -f $bootabletools && cd .. cd logs && rm -f $basicsystem && rm -f $bootscripttools && rm -f $bootabletools && cd ..
restore-clfs-env: restore-luser-env:
@\$(call echo_message, Building) @\$(call echo_message, Building)
@if [ -f /home/\$(LUSER)/.bashrc.XXX ]; then \\ @if [ -f /home/\$(LUSER)/.bashrc.XXX ]; then \\
mv -fv /home/\$(LUSER)/.bashrc.XXX /home/\$(LUSER)/.bashrc; \\ mv -fv /home/\$(LUSER)/.bashrc.XXX /home/\$(LUSER)/.bashrc; \\

View file

@ -36,7 +36,7 @@ cat << EOF
groupadd \$(LGROUP); \\ groupadd \$(LGROUP); \\
useradd -s /bin/bash -g \$(LGROUP) -m -k /dev/null \$(LUSER); \\ useradd -s /bin/bash -g \$(LGROUP) -m -k /dev/null \$(LUSER); \\
else \\ else \\
touch user-clfs-exist; \\ touch luser-exist; \\
fi; fi;
@chown \$(LUSER) \$(MOUNT_PT) && \\ @chown \$(LUSER) \$(MOUNT_PT) && \\
chown \$(LUSER) \$(MOUNT_PT)/tools && \\ chown \$(LUSER) \$(MOUNT_PT)/tools && \\
@ -438,7 +438,7 @@ EOF
# as a dependency. # as a dependency.
( (
cat << EOF cat << EOF
all: chapter2 chapter3 chapter4 chapter5 chapter6 do-housekeeping all: chapter2 chapter3 chapter4 chapter5 chapter6 restore-luser-env do-housekeeping
@\$(call echo_finished,$VERSION) @\$(call echo_finished,$VERSION)
chapter2: 023-creatingtoolsdir 025-addinguser 026-settingenvironment 027-create-directories 028-creating-sysfile chapter2: 023-creatingtoolsdir 025-addinguser 026-settingenvironment 027-create-directories 028-creating-sysfile
@ -459,7 +459,7 @@ clean:
restart: restart:
@echo "This feature does not exist for the CLFS makefile. (yet)" @echo "This feature does not exist for the CLFS makefile. (yet)"
restore-clfs-env: restore-luser-env:
@\$(call echo_message, Building) @\$(call echo_message, Building)
@if [ -f /home/\$(LUSER)/.bashrc.XXX ]; then \\ @if [ -f /home/\$(LUSER)/.bashrc.XXX ]; then \\
mv -f /home/\$(LUSER)/.bashrc.XXX /home/\$(LUSER)/.bashrc; \\ mv -f /home/\$(LUSER)/.bashrc.XXX /home/\$(LUSER)/.bashrc; \\
@ -473,7 +473,7 @@ restore-clfs-env:
echo --------------------------------------------------------------------------------\$(WHITE) echo --------------------------------------------------------------------------------\$(WHITE)
do-housekeeping: do-housekeeping:
@-if [ ! -f user-clfs-exist ]; then \\ @-if [ ! -f luser-exist ]; then \\
userdel \$(LUSER); \\ userdel \$(LUSER); \\
rm -rf /home/\$(LUSER); \\ rm -rf /home/\$(LUSER); \\
fi; fi;

View file

@ -84,7 +84,7 @@ chapter3_Makefiles() { # Initialization of the system
TARGET="pc-linux-gnu"; LOADER="ld-linux.so.2" TARGET="pc-linux-gnu"; LOADER="ld-linux.so.2"
fi fi
# If /home/hlfs is already present in the host, we asume that the # If /home/$LUSER is already present in the host, we asume that the
# hlfs user and group are also presents in the host, and a backup # hlfs user and group are also presents in the host, and a backup
# of their bash init files is made. # of their bash init files is made.
( (
@ -108,7 +108,7 @@ cat << EOF
groupadd \$(LGROUP); \\ groupadd \$(LGROUP); \\
useradd -s /bin/bash -g \$(LGROUP) -m -k /dev/null \$(LUSER); \\ useradd -s /bin/bash -g \$(LGROUP) -m -k /dev/null \$(LUSER); \\
else \\ else \\
touch user-hlfs-exist; \\ touch luser-exist; \\
fi; fi;
@chown \$(LUSER) \$(MOUNT_PT)/tools && \\ @chown \$(LUSER) \$(MOUNT_PT)/tools && \\
chown \$(LUSER) \$(MOUNT_PT)/sources && \\ chown \$(LUSER) \$(MOUNT_PT)/sources && \\
@ -524,7 +524,7 @@ all: chapter3 chapter5 chapter6 chapter7 do-housekeeping
chapter3: 020-creatingtoolsdir 021-addinguser 022-settingenvironment chapter3: 020-creatingtoolsdir 021-addinguser 022-settingenvironment
chapter5: chapter3 $chapter5 restore-hlfs-env chapter5: chapter3 $chapter5 restore-luser-env
chapter6: chapter5 $chapter6 chapter6: chapter5 $chapter6
@ -538,18 +538,18 @@ clean: clean-chapter7 clean-chapter6 clean-chapter5 clean-chapter3
restart: restart_code all restart: restart_code all
clean-chapter3: clean-chapter3:
-if [ ! -f user-hlfs-exist ]; then \\ -if [ ! -f luser-exist ]; then \\
userdel \$(LUSER); \\ userdel \$(LUSER); \\
rm -rf /home/\$(LUSER); \\ rm -rf /home/\$(LUSER); \\
fi; fi;
rm -rf \$(MOUNT_PT)/tools rm -rf \$(MOUNT_PT)/tools
rm -f /tools rm -f /tools
rm -f envars user-hlfs-exist rm -f envars luser-exist
rm -f 02* logs/02*.log rm -f 02* logs/02*.log
clean-chapter5: clean-chapter5:
rm -rf \$(MOUNT_PT)/tools/* rm -rf \$(MOUNT_PT)/tools/*
rm -f $chapter5 restore-hlfs-env sources-dir rm -f $chapter5 restore-luser-env sources-dir
cd logs && rm -f $chapter5 && cd .. cd logs && rm -f $chapter5 && cd ..
clean-chapter6: clean-chapter6:
@ -566,7 +566,7 @@ clean-chapter7:
rm -f $chapter7 rm -f $chapter7
cd logs && rm -f $chapter7 && cd .. cd logs && rm -f $chapter7 && cd ..
restore-hlfs-env: restore-luser-env:
@\$(call echo_message, Building) @\$(call echo_message, Building)
@if [ -f /home/\$(LUSER)/.bashrc.XXX ]; then \\ @if [ -f /home/\$(LUSER)/.bashrc.XXX ]; then \\
mv -f /home/\$(LUSER)/.bashrc.XXX /home/\$(LUSER)/.bashrc; \\ mv -f /home/\$(LUSER)/.bashrc.XXX /home/\$(LUSER)/.bashrc; \\
@ -585,7 +585,7 @@ do-housekeeping:
@-umount \$(MOUNT_PT)/dev @-umount \$(MOUNT_PT)/dev
@-umount \$(MOUNT_PT)/sys @-umount \$(MOUNT_PT)/sys
@-umount \$(MOUNT_PT)/proc @-umount \$(MOUNT_PT)/proc
@-if [ ! -f user-hlfs-exist ]; then \\ @-if [ ! -f luser-exist ]; then \\
userdel \$(LUSER); \\ userdel \$(LUSER); \\
rm -rf /home/\$(LUSER); \\ rm -rf /home/\$(LUSER); \\
fi; fi;

View file

@ -13,7 +13,7 @@ chapter4_Makefiles() {
#----------------------------# #----------------------------#
echo "${tab_}${GREEN}Processing... ${L_arrow}Chapter4${R_arrow}" echo "${tab_}${GREEN}Processing... ${L_arrow}Chapter4${R_arrow}"
# If /home/lfs is already present in the host, we asume that the # If /home/$LUSER is already present in the host, we asume that the
# lfs user and group are also presents in the host, and a backup # lfs user and group are also presents in the host, and a backup
# of their bash init files is made. # of their bash init files is made.
( (
@ -33,7 +33,7 @@ chapter4_Makefiles() {
groupadd \$(LGROUP); \\ groupadd \$(LGROUP); \\
useradd -s /bin/bash -g \$(LGROUP) -m -k /dev/null \$(LUSER); \\ useradd -s /bin/bash -g \$(LGROUP) -m -k /dev/null \$(LUSER); \\
else \\ else \\
touch user-lfs-exist; \\ touch luser-exist; \\
fi; fi;
@chown \$(LUSER) \$(MOUNT_PT)/tools && \\ @chown \$(LUSER) \$(MOUNT_PT)/tools && \\
chmod a+wt \$(MOUNT_PT)/sources && \\ chmod a+wt \$(MOUNT_PT)/sources && \\
@ -402,7 +402,7 @@ all: chapter4 chapter5 chapter6 chapter789 do_housekeeping
chapter4: 020-creatingtoolsdir 021-addinguser 022-settingenvironment chapter4: 020-creatingtoolsdir 021-addinguser 022-settingenvironment
chapter5: chapter4 $chapter5 restore-lfs-env chapter5: chapter4 $chapter5 restore-luser-env
chapter6: chapter5 $chapter6 chapter6: chapter5 $chapter6
@ -416,18 +416,18 @@ clean: clean-chapter789 clean-chapter6 clean-chapter5 clean-chapter4
restart: restart_code all restart: restart_code all
clean-chapter4: clean-chapter4:
-if [ ! -f user-lfs-exist ]; then \\ -if [ ! -f luser-exist ]; then \\
userdel \$(LUSER); \\ userdel \$(LUSER); \\
rm -rf /home/\$(LUSER); \\ rm -rf /home/\$(LUSER); \\
fi; fi;
rm -rf \$(MOUNT_PT)/tools rm -rf \$(MOUNT_PT)/tools
rm -f /tools rm -f /tools
rm -f envars user-lfs-exist rm -f envars luser-exist
rm -f 02* logs/02*.log rm -f 02* logs/02*.log
clean-chapter5: clean-chapter5:
rm -rf \$(MOUNT_PT)/tools/* rm -rf \$(MOUNT_PT)/tools/*
rm -f $chapter5 restore-lfs-env sources-dir rm -f $chapter5 restore-luser-env sources-dir
cd logs && rm -f $chapter5 && cd .. cd logs && rm -f $chapter5 && cd ..
clean-chapter6: clean-chapter6:
@ -444,7 +444,7 @@ clean-chapter789:
rm -f $chapter789 rm -f $chapter789
cd logs && rm -f $chapter789 && cd .. cd logs && rm -f $chapter789 && cd ..
restore-lfs-env: restore-luser-env:
@\$(call echo_message, Building) @\$(call echo_message, Building)
@if [ -f /home/\$(LUSER)/.bashrc.XXX ]; then \\ @if [ -f /home/\$(LUSER)/.bashrc.XXX ]; then \\
mv -f /home/\$(LUSER)/.bashrc.XXX /home/\$(LUSER)/.bashrc; \\ mv -f /home/\$(LUSER)/.bashrc.XXX /home/\$(LUSER)/.bashrc; \\
@ -463,7 +463,7 @@ do_housekeeping:
@-umount \$(MOUNT_PT)/dev/shm @-umount \$(MOUNT_PT)/dev/shm
@-umount \$(MOUNT_PT)/dev/pts @-umount \$(MOUNT_PT)/dev/pts
@-umount \$(MOUNT_PT)/dev @-umount \$(MOUNT_PT)/dev
@-if [ ! -f user-lfs-exist ]; then \\ @-if [ ! -f luser-exist ]; then \\
userdel \$(LUSER); \\ userdel \$(LUSER); \\
rm -rf /home/\$(LUSER); \\ rm -rf /home/\$(LUSER); \\
fi; fi;