cbuild v7
This commit is contained in:
@@ -1,14 +1,4 @@
|
||||
#!/usr/bin/bash
|
||||
set -eo pipefail
|
||||
|
||||
for tmpfile in $(ls -a | grep -e '\.rebuild.*\.tmp'); do
|
||||
try_delete_dir_or_file "$tmpfile"
|
||||
done
|
||||
|
||||
for submodule in kerep utf8proc; do
|
||||
cd "$submodule"
|
||||
make clean
|
||||
cd ..
|
||||
done
|
||||
|
||||
try_delete_dir_or_file src/generated
|
||||
|
||||
@@ -1,28 +1,5 @@
|
||||
#!/bin/bash
|
||||
set -eo pipefail
|
||||
|
||||
# if $lib_project.a doesn't exist or rebuild_* task was executed, builds static lib
|
||||
function handle_static_dependency {
|
||||
local lib_project="$1"
|
||||
local lib_build_task="$2"
|
||||
local lib_build_rezults="$3"
|
||||
if [ ! -f "$OBJDIR/libs/$lib_project.a" ] || [ -f .rebuild_$lib_project.tmp ]; then
|
||||
[[ -z "$lib_build_task" ]] && error "lib_build_task is empty"
|
||||
myprint "${BLUE}making $lib_project task <$lib_build_task>"
|
||||
|
||||
cd $lib_project
|
||||
if ! make "$lib_build_task"; then
|
||||
exit 1
|
||||
fi
|
||||
cd ..
|
||||
|
||||
cp $lib_build_rezults $OBJDIR/libs/
|
||||
myprint "${GREEN}copied ${CYAN}$lib_project.a"
|
||||
rm -f .rebuild_$lib_project.tmp
|
||||
fi
|
||||
}
|
||||
|
||||
handle_static_dependency kerep "$DEPS_BUILD_TASK" kerep/bin/kerep.a
|
||||
handle_static_dependency utf8proc libutf8proc.a utf8proc/libutf8proc.a
|
||||
|
||||
# generate source code for views/*.tui.dtsod
|
||||
source tasks/build_view.sh
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
#!/bin/bash
|
||||
set -eo pipefail
|
||||
|
||||
source cbuild/colors.sh
|
||||
source cbuild/functions.sh
|
||||
touch ".rebuild_$1.tmp"
|
||||
rm -fv "obj/libs/$1.a"
|
||||
myprint "${YELLOW}$1.a will be rebuilt in the next build task"
|
||||
Reference in New Issue
Block a user