i didnt do much except add a bit, none of the code is functional so far though because this shit is still incomplete

This commit is contained in:
kevadesu 2024-10-25 22:00:00 +02:00
parent a560683577
commit f452ab3573
2 changed files with 14 additions and 8 deletions

View file

@ -1,12 +1,14 @@
#!/bin/bash
main() {
eal.envsetup
eal.setup.env
eal.setup.toolchain
}
function eal.envsetup() {
function eal.setup.env() {
echo "The installer is about to begin setting up the environment. Please wait..."
sleep 2
cat > ~/.bash_profile << "EOF"
exec env -i HOME=$HOME TERM=$TERM PS1='\u:\w\$ ' /bin/bash
EOF
@ -22,13 +24,17 @@ if [ ! -L /bin ]; then PATH=/bin:$PATH; fi
PATH=$LFS/tools/bin:$PATH
CONFIG_SITE=$LFS/usr/share/config.site
export LFS LC_ALL LFS_TGT PATH CONFIG_SITE
EOF
cat >> ~/.bashrc << "EOF"
export MAKEFLAGS=-j$(nproc)
export SYS_TRIPLET=/usr/bin/gcc -dumpmachine
EOF
source ~/.bash_profile
}
eal.setup.toolchain() {
echo -e "I: The detected system triplet is $(/usr/bin/gcc -dumpmachine)."
export SYS_TRIPLET=$(/usr/bin/gcc -dumpmachine)
echo
}
main

View file

@ -7,7 +7,7 @@ LFS v12.2-systemd book chapter: 4.2.
## To do
```md
[ ] Make a package manager
[X] Finish the project in the first place
[ ] Finish the project in the first place
```
## Contributing