build_profile, make.log and other stuff

This commit is contained in:
2023-02-13 19:24:47 +06:00
parent 1b38b43c54
commit a0cdbf5522
15 changed files with 315 additions and 140 deletions

View File

@@ -1,12 +1,16 @@
#!/bin/bash
# exit on errors
set -eo pipefail
# help
if [ $# -eq 0 ] || [ "$1" = "h" ] || [ "$1" = "-h" ] || [ "$1" = "--help" ] || [ "$1" = "/?" ]; then
echo "usage: setup.sh [ submodule | standalone ]"
echo " submodule - add to existing git repo as submodule"
echo " standalone - keep independent git repo"
fi
case $1 in
case "$1" in
submodule)
echo "mode - $1"
git submodule add cbuild
@@ -16,10 +20,9 @@ case $1 in
;;
*)
echo "invalid argument: $1"
exit 1
exit -1
;;
esac
cp cbuild/default.Makefile Makefile
cp cbuild/default.config ./
#bash cbuild/chmod_scripts.sh