script edits

This commit is contained in:
2026-07-14 23:15:37 -05:00
parent 7f6ef0fdc2
commit c77d9e1725
7 changed files with 31 additions and 41 deletions

View File

@@ -1,29 +1,17 @@
#!/bin/bash
TARGET_DIR="programs"
mkdir -p programs/lib
mkdir -p programs/bin
if [ ! -d "$TARGET_DIR" ]; then
exit 1
fi
cp rocklibc/rlibc.a programs/lib
cd programs
cd rocksh
make clean
bear -- make
cp rocksh.elf ../bin
cd ..
cd vga_text_term
make clean
bear -- make
cp vga_text_term.elf ../bin
cd ..
cd test
make clean
bear -- make
cp test.elf ../bin
cd ..
cd ..
find "$TARGET_DIR" -type f \( -name "Makefile" -o -name "makefile" \) | while read -r makefile_path; do
dir_path=$(dirname "$makefile_path")
(
cd "$dir_path" || exit
make clean
make
)
done