Fix build script Limine-HDD.HH generate command placement.

This commit is contained in:
TomAwezome 2022-09-17 02:51:44 -04:00
parent a5fbff8a83
commit 027116f596

View file

@ -91,14 +91,6 @@ then
rm limine-deploy
rm limine-version
touch Limine-HDD.HH
echo "/*\$WW,1\$" > Limine-HDD.HH
cat LICENSE.md >> Limine-HDD.HH
echo "*/\$WW,0\$" >> Limine-HDD.HH
cat limine-hdd.h >> Limine-HDD.HH
sed -i 's/const uint8_t/U8/g' Limine-HDD.HH
sed -i "s/\[\]/\[$(grep -c ' ' ./limine-hdd.h)*16\]/g" Limine-HDD.HH
cd ..
fi
if [ ! -d "limine" ]; then
@ -106,6 +98,14 @@ if [ ! -d "limine" ]; then
fi
make -C limine
touch limine/Limine-HDD.HH
echo "/*\$WW,1\$" > limine/Limine-HDD.HH
cat limine/LICENSE.md >> limine/Limine-HDD.HH
echo "*/\$WW,0\$" >> limine/Limine-HDD.HH
cat limine/limine-hdd.h >> limine/Limine-HDD.HH
sed -i 's/const uint8_t/U8/g' limine/Limine-HDD.HH
sed -i "s/\[\]/\[$(grep -c ' ' ./limine/limine-hdd.h)*16\]/g" limine/Limine-HDD.HH
mount_tempdisk
echo "Extracting MyDistro ISO from vdisk ..."
cp $TMPMOUNT/Tmp/MyDistro.ISO.C ./ZealOS-MyDistro.iso