Skip to content

Commit

Permalink
Extended descriptions for build rules.
Browse files Browse the repository at this point in the history
  • Loading branch information
fboender committed Mar 15, 2021
1 parent fa6b905 commit 786bd36
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions build.sla
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ PROG="scriptform"

test () {
# Run tests
# Runs unit, integration, linting and code quality tests.
ROOTDIR="$(pwd)"

# Unit / integration tests
Expand Down Expand Up @@ -86,6 +87,10 @@ _release_check() {

release_src () {
# Build source (tar.gz) release
# Usage: sla release_src <version>
#
# Example:
# sla release_src 9.99
_release_check "$*"

# Prepare source
Expand All @@ -108,6 +113,10 @@ release_src () {

release_deb () {
# Build deb release
# Usage: sla release_deb <version>
#
# Example:
# sla release_deb 9.99
_release_check "$*"

if [ -z "$RELEASE_DEB_DONE" ]; then
Expand Down Expand Up @@ -148,6 +157,10 @@ release_deb () {

release_rpm () {
# Build rpm release
# Usage: sla release_rpm <version>
#
# Example:
# sla release_rpm 9.99
_release_check "$*"
release_deb

Expand All @@ -168,7 +181,11 @@ release_rpm () {
}

release_bin () {
# Build binary release
# Build standalone binary release
# Usage: sla release_bin <version>
#
# Example:
# sla release_bin 9.99
_release_check "$*"

rm -rf dist/scriptform/
Expand All @@ -193,7 +210,13 @@ release_bin () {
}

release () {
# Build releases for all platforms
# Build all releases
# Usage: sla release <version>
#
# Builds the debian, rpm packages, source release and standalone binary.
#
# Example:
# sla release 9.99
_release_check "$*"
release_src
release_deb
Expand Down

0 comments on commit 786bd36

Please sign in to comment.