cobek/tasks/pre_build.sh
2023-01-16 03:13:02 +06:00

14 lines
258 B
Bash
Executable File

#!/bin/bash
if [ ! -f "kerep/bin/kerep.a" ] || [ -f .rebuild_kerep ]
then
cd kerep
if ! make "$KEREP_BUILD_TASK"; then
exit 1
fi
cd ..
rm -rf .rebuild_kerep
fi
cp kerep/bin/kerep.a obj/
printf "${GREEN}copied ${CYAN}kerep.a\n"