-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #979 from bitcraze/app-make
Add toobelt tool for building apps
- Loading branch information
Showing
3 changed files
with
27 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
|
||
# Use this script to make an app, mainly intended for the toolbelt | ||
# | ||
# The scipt taks one requierd argument, which is the path to the app to build (must be in the source tree) | ||
# Optional aguments can be added that will be passed on to make. | ||
# | ||
# "tb make_app <path/to/app>" behaves as calling "make" in the directory where the app is located, meaning that any | ||
# arguments for make can just be appended. | ||
# | ||
# Eamples: | ||
# tb make_app examples/app_hello_world -j8 | ||
# tb make_app examples/app_hello_world clean | ||
|
||
scriptDir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) | ||
|
||
app_path="$1" | ||
make_args="${@: 2}" | ||
|
||
cd ${app_path} | ||
make ${make_args} | ||
cd - |