This repository was archived by the owner on Jun 17, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- remove useless '|| exit' in second bootstrap line - Add a synthetic stack, showing the trace on error
- Loading branch information
1 parent
b54ebf9
commit a34a5ab
Showing
71 changed files
with
837 additions
and
385 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
[*] | ||
indent_style = tab | ||
indent_size = 4 | ||
|
||
[*.{yaml,yml}] | ||
indent_style = space |
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,3 +1,7 @@ | ||
# glue-store | ||
|
||
My personal store for [glue](https://github.com/eankeen/glue); visit that repository for more information about Glue | ||
|
||
TODO | ||
|
||
- linter for bootstrapping files and functions |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,7 +1,10 @@ | ||
#!/usr/bin/env bash | ||
eval "$GLUE_BOOTSTRAP" | ||
bootstrap || exit | ||
bootstrap | ||
|
||
ensure.cmd 'go' | ||
action() { | ||
: | ||
} | ||
|
||
action "$@" | ||
unbootstrap |
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,6 +1,6 @@ | ||
#!/usr/bin/env bash | ||
eval "$GLUE_BOOTSTRAP" | ||
bootstrap || exit | ||
bootstrap | ||
|
||
action() { | ||
local version="$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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/usr/bin/env bash | ||
eval "$GLUE_BOOTSTRAP" | ||
bootstrap || exit | ||
bootstrap | ||
|
||
action() { | ||
local version="$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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/usr/bin/env bash | ||
eval "$GLUE_BOOTSTRAP" | ||
bootstrap | ||
|
||
action() { | ||
# wget https://github.com/eankeen/bash-args/archive/refs/tags/v0.5.0.tar.gz | ||
# mv v0.5.0.tar.gz bash-args_0.5.0.orig.tar.gz | ||
# tar xf bash-args_0.5.0.orig.tar.gz | ||
|
||
fedpkg --release f34 local | ||
} | ||
|
||
action "$@" | ||
unbootstrap |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,12 +1,15 @@ | ||
#!/usr/bin/env bash | ||
eval "$GLUE_BOOTSTRAP" | ||
bootstrap || exit | ||
bootstrap | ||
|
||
ensure.cmd 'checkmake' | ||
action() { | ||
ensure.cmd 'checkmake' | ||
|
||
for file in **/{Makefile,GNUMakefile,*.mk}; do | ||
checkmake "$file" | ||
done | ||
unset -v file | ||
for file in **/{Makefile,GNUMakefile,*.mk}; do | ||
checkmake "$file" | ||
done | ||
unset -v file | ||
} | ||
|
||
action "$@" | ||
unbootstrap |
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 was deleted.
Oops, something went wrong.
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,12 @@ | ||
#!/usr/bin/env bash | ||
eval "$GLUE_BOOTSTRAP" | ||
bootstrap | ||
|
||
action() { | ||
ensure.cmd 'go' | ||
|
||
go build ./... | ||
} | ||
|
||
action "$@" | ||
unbootstrap |
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,10 +1,13 @@ | ||
#!/usr/bin/env bash | ||
eval "$GLUE_BOOTSTRAP" | ||
bootstrap || exit | ||
bootstrap | ||
|
||
ensure.cmd 'gofmt' | ||
action() { | ||
ensure.cmd 'gofmt' | ||
|
||
go list -f '{{.Dir}}' ./... \ | ||
| xargs gofmt -s -l -w | ||
go list -f '{{.Dir}}' ./... \ | ||
| xargs gofmt -s -l -w | ||
} | ||
|
||
action "$@" | ||
unbootstrap |
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,12 +1,15 @@ | ||
#!/usr/bin/env bash | ||
eval "$GLUE_BOOTSTRAP" | ||
bootstrap || exit | ||
bootstrap | ||
|
||
# glue useConfig(golangci-lint) | ||
util.ln_config "golangci-lint/.golangci.yaml" ".golangci.yaml" | ||
action() { | ||
# glue useConfig(golangci-lint) | ||
util.ln_config "golangci-lint/.golangci.yaml" ".golangci.yaml" | ||
|
||
ensure.cmd 'golangci-lint' | ||
ensure.cmd 'golangci-lint' | ||
|
||
golangci-lint run --enable-all ./... | ||
golangci-lint run --enable-all ./... | ||
} | ||
|
||
action "$@" | ||
unbootstrap |
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,9 +1,12 @@ | ||
#!/usr/bin/env bash | ||
eval "$GLUE_BOOTSTRAP" | ||
bootstrap || exit | ||
bootstrap | ||
|
||
ensure.cmd 'go' | ||
action() { | ||
ensure.cmd 'go' | ||
|
||
go get ./... | ||
go get ./... | ||
} | ||
|
||
action "$@" | ||
unbootstrap |
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,58 @@ | ||
#!/usr/bin/env bash | ||
eval "$GLUE_BOOTSTRAP" | ||
bootstrap | ||
|
||
action() { | ||
ensure.cmd 'toast' | ||
|
||
util.shopt -s globstar | ||
|
||
local exitCode=0 | ||
|
||
toml.get_key 'gitRemoteUser' glue.toml | ||
local gitRemoteUser="$REPLY" | ||
|
||
toml.get_key 'gitRemoteRepo' glue.toml | ||
local gitRemoteRepo="$REPLY" | ||
|
||
bootstrap.generated 'tool-mkdocs' | ||
ensure.cd "$GENERATED_DIR" | ||
|
||
# TODO: only import docs | ||
git clone --depth 1 file://"$GLUE_WD" . | ||
|
||
# glue useConfig(tool-mkdocs) | ||
util.get_config 'tool-mkdocs/mkdocs.yml' | ||
local cfgMkdocsYml="$REPLY" | ||
|
||
util.get_config 'tool-mkdocs/pyproject.toml' | ||
local cfgPyprojectToml="$REPLY" | ||
|
||
util.get_config 'tool-mkdocs/toast.yml' | ||
local cfgToastYml="$REPLY" | ||
|
||
cp "$cfgMkdocsYml" "$cfgPyprojectToml" "$cfgToastYml" . | ||
|
||
ensure.file "$GLUE_WD/README.md" | ||
cp "$GLUE_WD/README.md" 'docs/index.md' | ||
|
||
# Copy specialized files to 'docs' before build | ||
util.run_hook 'hook.tool-mkdocs.copy_docs' | ||
|
||
toast mkdocs | ||
cp -r "$GENERATED_DIR/site" "site" | ||
|
||
ensure.cd site | ||
git init --initial-branch=main | ||
git add -A | ||
# TODO: commit message | ||
git commit -m 'Update site' | ||
# TODO: rebase or configure merge strategy | ||
git push -f "https://github.com/$gitRemoteUser/$gitRemoteRepo.git" main:gh-pages | ||
unbootstrap.generated | ||
|
||
REPLY="$exitCode" | ||
} | ||
|
||
action "$@" | ||
unbootstrap |
Oops, something went wrong.