This file contains hidden or 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
#!/bin/bash | |
function show_help { | |
echo "Usage:" | |
echo "./startbuild.sh -t <build_target> [-c -h]" | |
echo | |
echo "Parameters:" | |
echo "-t: specify the build target as per lunch (required)" | |
echo "-c: perform a clean build, calling make clean" | |
echo "-h: show this" |
This file contains hidden or 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
#!/bin/bash | |
# Every repository is contained in a subdirectory of the current one | |
repos=$(ls -d */) | |
FINAL_LOG_FILE=result_log.txt | |
rm $FINAL_LOG_FILE | |
touch $FINAL_LOG_FILE | |
for repo in ${repos[*]} |
This file contains hidden or 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
#!/bin/bash | |
# Based on https://gist.github.com/johnjohndoe/5398030 | |
checkForAndroidDevice() { | |
NOT_PRESENT="List of devices attached" | |
ADB_FOUND=`adb devices | tail -2 | head -1 | cut -f 1 | sed 's/ *$//g'` | |
if [[ ${ADB_FOUND} == ${NOT_PRESENT} ]]; then | |
echo "Android device seems to be missing." |
NewerOlder