10 lines
176 B
Bash
Executable File
10 lines
176 B
Bash
Executable File
#!/bin/sh
|
|
txt=$(basename $0 .sh)".txt"
|
|
set -e
|
|
rm -f a.out
|
|
cc -Wall -Wextra -Werror -o a.out -L../ft -lft *.c
|
|
cat ${txt} | while read nbr; do
|
|
./a.out "${nbr}"
|
|
done
|
|
rm -f a.out
|