diff options
author | Marvin Borner | 2019-09-14 20:26:53 +0200 |
---|---|---|
committer | Marvin Borner | 2019-09-14 20:26:53 +0200 |
commit | edfded107a7a573c06894d5ade48b4a1d7a3e265 (patch) | |
tree | 8a95094a36b78213e181b2f9aeabb3aaf0a8a387 /build.sh | |
parent | 1934b7a44d7501f303cbd52950f0d911a02a2a63 (diff) |
Fixed tmp file deletion
Diffstat (limited to 'build.sh')
-rwxr-xr-x | build.sh | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -12,15 +12,15 @@ mkdir ./build/ i686-elf-as ./src/boot.s -o ./build/boot.o files="" -find ./src -name \*.c > ./build/tmp +find ./src -name \*.c >./build/tmp while read -r line; do stripped=$(echo "${line}" | sed -r 's/\//_/g') stripped=${stripped#??????} stripped=${stripped%%?}o i686-elf-gcc -c ./"${line}" -o ./build/"${stripped}" -std=gnu99 -ffreestanding -O2 -Wall -Wextra files="${files} ./build/${stripped}" -done < ./build/tmp -rm tmp +done <./build/tmp +rm ./build/tmp # shellcheck disable=SC2086 # Shellcheck suppression is needed because gcc would think that $files is one file |