build_profile, make.log and other stuff
This commit is contained in:
9
setup.sh
9
setup.sh
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user