2022-05-06 13:48:56 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
2022-05-24 14:46:59 +02:00
|
|
|
dont_compile="./base.nim"
|
|
|
|
req_ssl=("./translate.nim" "./tides.nim")
|
2022-05-06 13:48:56 +02:00
|
|
|
for f in ./*.nim; do
|
2022-05-24 14:46:59 +02:00
|
|
|
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
|
2022-05-06 13:48:56 +02:00
|
|
|
done
|