project created

This commit is contained in:
2023-03-29 14:39:03 +06:00
commit 9edf287034
10 changed files with 257 additions and 0 deletions

4
tasks/clean_additions.sh Normal file
View File

@@ -0,0 +1,4 @@
#!/usr/bin/bash
myprint "${WHITE}deleting .kerep_rebuild.tmp"
rm -rf .kerep_rebuild.tmp

17
tasks/pre_build.sh Normal file
View File

@@ -0,0 +1,17 @@
#!/bin/bash
# check if kerep static lib exists or kerep_rebuild task was executed
if [ ! -f "$OBJDIR/libs/kerep.a" ] || [ -f .rebuild_kerep.tmp ]; then
[[ -z "$KEREP_BUILD_TASK" ]] && error "KEREP_BUILD_TASK is empty"
myprint "${BLUE}making kerep task <$KEREP_BUILD_TASK>"
cd kerep
if ! make "$KEREP_BUILD_TASK"; then
exit 1
fi
cd ..
cp kerep/bin/kerep.a $OBJDIR/libs/
myprint "${GREEN}copied ${CYAN}kerep.a"
rm -f .rebuild_kerep.tmp
fi

3
tasks/rebuild_kerep.sh Normal file
View File

@@ -0,0 +1,3 @@
#!/bin/bash
touch .rebuild_kerep.tmp
myprint "${YELLOW}kerep.a will be rebuilt in the next build task"