-
Notifications
You must be signed in to change notification settings - Fork 3
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 #1 from budlabs/dev
Dev
- Loading branch information
Showing
15 changed files
with
245 additions
and
68 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
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,20 +1,18 @@ | ||
#!/usr/bin/env bash | ||
|
||
# increment version number | ||
# i3ass specific __pre-apply | ||
|
||
# increment version numbers | ||
# set updated to today in manifest.md | ||
|
||
today="$(date +%Y-%m-%d)" | ||
projectdir=$1 | ||
manifest="$projectdir/manifest.md" | ||
projectdir="$1" | ||
newver="$(date +%Y.%m.%d).0" | ||
curver="$(bashbud --get version)" | ||
|
||
[[ ${newver%.*} = "${curver%.*}" ]] && { | ||
controldigit="${curver##*.}" | ||
newver="${newver%.*}.$((controldigit+1))" | ||
} | ||
|
||
awk -i inplace -v today="$today" ' | ||
$1 == "version:" { | ||
newver=$2 + 0.001 | ||
sub($2,newver,$0) | ||
bump=0 | ||
} | ||
$1 == "updated:" { | ||
sub($2,today,$0) | ||
} | ||
{print} | ||
' "$manifest" | ||
bashbud --set version "$newver" "$projectdir" | ||
bashbud --set updated "$(date +%Y-%m-%d)" "$projectdir" |
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,18 @@ | ||
#!/usr/bin/env bash | ||
|
||
getorder() { | ||
local trgdir="$1" | ||
|
||
[[ -d $trgdir ]] || return 1 | ||
|
||
if [[ -f "$trgdir/__order" ]]; then | ||
awk ' | ||
/^[^#]/ && $0 !~ /^\s*$/ {print} | ||
' "$trgdir/__order" | ||
ls "$trgdir" | grep -v '^__' | ||
else | ||
ls "$trgdir" | grep -v '^__' | ||
fi | awk -v d="$trgdir" ' | ||
!a[$0]++ {print d "/" $0} | ||
' | ||
} |
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
Oops, something went wrong.