26 lines
527 B
Bash
26 lines
527 B
Bash
#!/bin/bash
|
|
|
|
dont_compile="./base.nim"
|
|
req_ssl=("./translate.nim" "./tides.nim")
|
|
for f in ./*.nim; do
|
|
if [[ $f == $dont_compile ]]; then
|
|
echo "Not compiling $f"
|
|
continue
|
|
fi
|
|
compiled=0
|
|
for i in "${req_ssl[@]}"
|
|
do
|
|
if [[ $f == $i ]]; then
|
|
echo "Compiling $f with SSL"
|
|
nim c -d:ssl $f
|
|
compiled=1
|
|
break
|
|
fi
|
|
done
|
|
if [[ $compiled == 1 ]]; then
|
|
continue
|
|
else
|
|
echo "Compiling $f"
|
|
nim c $f
|
|
fi
|
|
done
|