diff options
author | William Harrington <kb0iic@berzerkula.org> | 2021-03-19 15:30:25 -0500 |
---|---|---|
committer | William Harrington <kb0iic@berzerkula.org> | 2021-03-19 15:30:25 -0500 |
commit | e51dc67515983b355153f19eb2b8fcf83e663f2c (patch) | |
tree | bc361ff5cdad1a3f9b9363edf883abbc36c04b73 | |
parent | 12363e26b352987d7c45d17a3c7ed3f706710e59 (diff) |
Add patches.csv to be copied and processed in download.
-rwxr-xr-x | download.sh | 7 | ||||
-rwxr-xr-x | lfs.sh | 20 |
2 files changed, 7 insertions, 20 deletions
diff --git a/download.sh b/download.sh index 99b0f7d..0a4fd9f 100755 --- a/download.sh +++ b/download.sh @@ -1,6 +1,7 @@ #!/bin/bash -cat packages.csv | while read line; do +# Packages +cat packages.csv patches.csv | while read line; do NAME="$(echo $line | cut -d\, -f1)" VERSION="$(echo $line | cut -d\, -f2)" URL="$(echo $line | cut -d\, -f3 | sed "s/@/${VERSION}/g")" @@ -21,4 +22,6 @@ cat packages.csv | while read line; do echo -e "${GRN}OK${RST}" fi -done
\ No newline at end of file +done + +# Patches @@ -1,26 +1,10 @@ #!/bin/bash +source env.sh source spinner.sh source colors.sh #source versioncheck.sh -set +h -umask 022 -export LFS=/mnt/lfs -export LC_ALL=POSIX -export LFS_TGT=$(uname -m)-lfs-linux-gnu -PATH=/usr/bin -if [ ! -L /bin ]; then PATH=/bin:${PATH}; fi -export PATH=${LFS}/tools/bin:${PATH} -export CONFIG_SITE=${LFS}/usr/share/config.site - -export LFS_VER=LFS10_1 -export LFS_DISK=/dev/sdb -export LFS_ROOT=1 -export LFS_PWD=lfs -export LFS_SRC=${LFS}/sources -export MAKEFLAGS="-j 3" - [[ -d /mnt/lfs ]] || sudo mkdir ${LFS} if ! grep -q "${LFS}" /proc/mounts; then @@ -47,7 +31,7 @@ esac #echo -e "${LFS_PWD}\n${LFS_PWD}\n" | sudo passwd lfs -cp -rf *.sh chapter* packages.csv "${LFS}/sources" +cp -rf *.sh chapter* *.csv "${LFS}/sources" cd "${LFS}/sources" source download.sh |