-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: Update contributing guidelines
Also add a script to run all the examples.
- Loading branch information
Showing
2 changed files
with
37 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/usr/bin/env bash | ||
quote_arg() { | ||
if [[ "$1" =~ ( ) ]]; then | ||
echo -n "'$1' " | ||
else | ||
echo -n "$1 " | ||
fi | ||
} | ||
|
||
run_script() { | ||
echo | ||
echo -n "~~~~~ Running " | ||
for arg in "$@"; do | ||
quote_arg "${arg}" | ||
done | ||
echo " ~~~~~" | ||
echo | ||
python3 "$@" | ||
echo | ||
} | ||
|
||
ORIG_DIR=$(pwd) | ||
SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &> /dev/null && pwd) | ||
cd "${SCRIPT_DIR}" || exit 1 | ||
python3 -m pip uninstall -y shell-logger | ||
cd .. | ||
python3 -m pip install . | ||
cd "${SCRIPT_DIR}" || exit 1 | ||
run_script hello_world_html.py | ||
run_script hello_world_html_and_console.py | ||
run_script hello_world_html_with_stats.py | ||
run_script build_flex.py | ||
cd "${ORIG_DIR}" || exit 1 |