-
Notifications
You must be signed in to change notification settings - Fork 150
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 #204 from umlaeute/fixes
Various fixes and improvements
- Loading branch information
Showing
24 changed files
with
150 additions
and
94 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 |
---|---|---|
@@ -1,8 +1,44 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
set -x | ||
|
||
|
||
usage() { | ||
cat <<EOF | ||
usage: $0 [OPTIONS] [<variant>] | ||
builds the current distro | ||
OPTIONS | ||
-l <logfile> write build-log to given file (instead of ${LOG:-build.log} | ||
-h print this help and exit | ||
EOF | ||
|
||
} | ||
|
||
while getopts "hl:" opt; do | ||
case "$opt" in | ||
h) | ||
usage | ||
exit 0 | ||
;; | ||
l) | ||
export LOG="$OPTARG" | ||
;; | ||
?) | ||
usage | ||
exit 2 | ||
;; | ||
esac | ||
done | ||
shift $(($OPTIND - 1)) | ||
|
||
echo "Distro path: ${DIST_PATH}" | ||
echo "CustomPiOS path: ${CUSTOM_PI_OS_PATH}" | ||
echo "================================================================" | ||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | ||
${DIR}/build $1 | ||
|
||
|
||
set -x | ||
|
||
${DIR}/build "$1" |
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
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,2 @@ | ||
/workspace | ||
/config.local |
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,3 @@ | ||
* | ||
!README | ||
!.gitignore |
Oops, something went wrong.