Removed unneeded true commands.
This commit is contained in:
parent
d9a53e03ac
commit
15537d521d
4 changed files with 12 additions and 14 deletions
|
@ -131,7 +131,7 @@ cross_tools_Makefiles() { #
|
|||
#
|
||||
# If $vrs isn't empty, we've got a package...
|
||||
#
|
||||
[[ "$vrs" != "" ]] && wrt_unpack "$name-$vrs.tar.*" && echo -e '\ttrue' >> $MKFILE.tmp
|
||||
[[ "$vrs" != "" ]] && wrt_unpack "$name-$vrs.tar.*"
|
||||
#
|
||||
wrt_run_as_su "${this_script}" "${file}"
|
||||
#
|
||||
|
@ -183,7 +183,7 @@ temptools_Makefiles() { #
|
|||
# If $vrs isn't empty, we've got a package...
|
||||
# Insert instructions for unpacking the package and to set the PKGDIR variable.
|
||||
#
|
||||
[[ "$vrs" != "" ]] && wrt_unpack "$name-$vrs.tar.*" && echo -e '\ttrue' >> $MKFILE.tmp
|
||||
[[ "$vrs" != "" ]] && wrt_unpack "$name-$vrs.tar.*"
|
||||
#
|
||||
wrt_run_as_su "${this_script}" "${file}"
|
||||
#
|
||||
|
@ -254,7 +254,7 @@ boot_Makefiles() { #
|
|||
# If $vrs isn't empty, we've got a package...
|
||||
# Insert instructions for unpacking the package and changing directories
|
||||
#
|
||||
[[ "$vrs" != "" ]] && wrt_unpack "$name-$vrs.tar.*" && echo -e '\ttrue' >> $MKFILE.tmp
|
||||
[[ "$vrs" != "" ]] && wrt_unpack "$name-$vrs.tar.*"
|
||||
#
|
||||
# Select a script execution method
|
||||
case $this_script in
|
||||
|
@ -322,11 +322,8 @@ chroot_Makefiles() { #
|
|||
#
|
||||
if [ "$vrs" != "" ] ; then
|
||||
case $this_script in
|
||||
*util-linux) wrt_unpack "$name-$vrs.tar.*"
|
||||
echo -e '\ttrue' >> $MKFILE.tmp
|
||||
;;
|
||||
*) wrt_unpack2 "$name-$vrs.tar.*"
|
||||
;;
|
||||
*util-linux) wrt_unpack "$name-$vrs.tar.*" ;;
|
||||
*) wrt_unpack2 "$name-$vrs.tar.*" ;;
|
||||
esac
|
||||
fi
|
||||
#
|
||||
|
|
|
@ -235,14 +235,16 @@ chapter5_Makefiles() { # Bootstrap or temptools phase
|
|||
|
||||
case $this_script in
|
||||
*binutils* ) # Dump the path to sources directory for later removal
|
||||
echo -e '\techo "$(MOUNT_PT)$(SRC)/$$ROOT" >> sources-dir' >> $MKFILE.tmp
|
||||
(
|
||||
cat << EOF
|
||||
@ROOT=\`head -n1 /tmp/unpacked | sed 's@^./@@;s@/.*@@'\` && \\
|
||||
echo "\$(MOUNT_PT)\$(SRC)/\$\$ROOT" >> sources-dir
|
||||
EOF
|
||||
) >> $MKFILE.tmp
|
||||
;;
|
||||
*adjusting* ) # For the Adjusting phase we must to cd to the binutils-build directory.
|
||||
echo -e '\t@echo "export PKGDIR=$(MOUNT_PT)$(SRC)/binutils-build" > envars' >> $MKFILE.tmp
|
||||
;;
|
||||
* ) # Everything else, add a true statment so we don't confuse make
|
||||
echo -e '\ttrue' >> $MKFILE.tmp
|
||||
;;
|
||||
esac
|
||||
|
||||
# Insert date and disk usage at the top of the log file, the script run
|
||||
|
|
|
@ -112,7 +112,6 @@ chapter5_Makefiles() {
|
|||
|
||||
# Insert instructions for unpacking the package and to set the PKGDIR variable.
|
||||
wrt_unpack "$FILE"
|
||||
echo -e '\ttrue' >> $MKFILE.tmp
|
||||
fi
|
||||
|
||||
# Insert date and disk usage at the top of the log file, the script run
|
||||
|
|
|
@ -216,7 +216,7 @@ cat << EOF
|
|||
@\$(call unpack,$FILE)
|
||||
@ROOT=\`head -n1 /tmp/unpacked | sed 's@^./@@;s@/.*@@'\` && \\
|
||||
echo "export PKGDIR=\$(MOUNT_PT)\$(SRC)/\$\$ROOT" > envars && \\
|
||||
chown -R lfs \$(MOUNT_PT)\$(SRC)/\$\$ROOT && \\
|
||||
chown -R lfs \$(MOUNT_PT)\$(SRC)/\$\$ROOT
|
||||
EOF
|
||||
) >> $MKFILE.tmp
|
||||
}
|
||||
|
|
Reference in a new issue