this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add run.sh for easy debugging

alice 3ef39c32 e18201f2

+56
+56
run.sh
··· 1 + #!/bin/bash 2 + 3 + # Exit immediately if a command exits with a non-zero status. 4 + set -e 5 + 6 + # Function to run the timezone generation script 7 + generate_tz_list() { 8 + echo "Generating timezone list..." 9 + python generate_tz_list.py 10 + } 11 + 12 + # Function to build the project 13 + build_project() { 14 + echo "Building project..." 15 + rebble build 16 + } 17 + 18 + # Function to install the project on the emulator 19 + install_project() { 20 + echo "Installing project on emulator..." 21 + rebble install --emulator basalt 22 + } 23 + 24 + # Parse the command line argument 25 + COMMAND=$1 26 + 27 + # Check if a command was provided 28 + if [ -z "$COMMAND" ]; then 29 + echo "Usage: ./run.sh {generate|build|install|debug}" 30 + exit 1 31 + fi 32 + 33 + # Execute the corresponding command 34 + case "$COMMAND" in 35 + generate) 36 + generate_tz_list 37 + ;; 38 + build) 39 + build_project 40 + ;; 41 + install) 42 + install_project 43 + ;; 44 + debug) 45 + echo "Running debug (build and install)..." 46 + build_project 47 + install_project 48 + ;; 49 + *) 50 + echo "Usage: ./run.sh {generate|build|install|debug}" 51 + exit 1 52 + ;; 53 + esac 54 + 55 + echo "Command '$COMMAND' completed successfully." 56 + exit 0