This commit is contained in:
2023-02-08 23:38:33 +06:00
parent ca99699406
commit 21600fcf20
2 changed files with 30 additions and 10 deletions

25
setup.sh Normal file
View File

@@ -0,0 +1,25 @@
#!/bin/bash
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
submodule)
echo "mode - $1"
git submodule add cbuild
;;
standalone)
echo "mode - $1"
;;
*)
echo "invalid argument: $1"
exit 1
;;
esac
cp cbuild/default.Makefile Makefile
cp cbuild/default.config
bash cbuild/chmod_scripts.sh