-
Notifications
You must be signed in to change notification settings - Fork 1
Update scaffold templates, metadata, and staging scripts with naming and debug changes #25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 2 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
1e03d18
modified: tools/staging_00_setup_scaffold.sh
Tearran b05c568
modified: src/initialize/debug.sh
Tearran dcd02b0
modified: tools/staging_01_check_required.sh
Tearran b537d66
validate_modulerenamed: tools/staging_00_setup_scaffold.sh -> tool…
Tearran 634af85
fix style
Tearran bd50486
modified: tools/00_setup_module.sh
Tearran 61207d5
style
Tearran b2cf73e
Update tools/03_promote_module.sh
Tearran b943b5f
Update tools/01_validate_module.sh
Tearran 5722d2e
renamed: .github/workflows/05_github_tests-validate.yml -> .github…
Tearran fdacb4a
modified: tools/10_consolidate_module.sh
Tearran 4e6fcc0
modified: tools/10_consolidate_module.sh
Tearran 692d672
modified: tools/10_consolidate_module.sh
Tearran c5b5b77
modified: tools/00_setup_module.sh
Tearran 6536b83
modified: tools/00_setup_module.sh
Tearran 4db54c2
modified: tools/02_validate_module.sh
Tearran 3b9744f
modified: tools/00_setup_module.sh
Tearran File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
This file was deleted.
Oops, something went wrong.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| #!/usr/bin/env bash | ||
| set -e | ||
| set -euo pipefail | ||
|
|
||
| SRC_ROOT="./src" | ||
| LIB_ROOT="./lib/armbian-config" | ||
|
|
||
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,29 +1,38 @@ | ||
| #!/bin/bash | ||
| set -e | ||
|
|
||
| # Move test_*.sh scripts from staging to tests/ | ||
| for test_file in ./staging/test_*.sh; do | ||
| [ -f "$test_file" ] || continue | ||
| echo "Moving $test_file to ./tests/" | ||
| mv "$test_file" ./tests/ | ||
|
|
||
| DOC_ROOT="./docs" | ||
|
|
||
| mkdir -p "$DOC_ROOT" | ||
| declare -A array_entries | ||
| declare -A group_counts # For unique id per group | ||
|
|
||
|
|
||
|
|
||
| # Move docs_*.sh scripts from staging to docs/ | ||
| for docs_file in ./staging/docs_*.md; do | ||
| [ -f "$docs_file" ] || continue | ||
| echo "Moving $docs_file to ./docs/" | ||
| mv "$docs_file" ./docs/ | ||
| done | ||
|
|
||
| # Move *.sh (not test_*.sh) with a matching .meta file to src/$parent/ | ||
| # Move *.sh (not docs_*.sh) with a matching .conf file to src/$parent/ | ||
| for sh_file in ./staging/*.sh; do | ||
| [[ "$sh_file" == *test_*.sh ]] && continue | ||
| [[ "$sh_file" == *docs_*.sh ]] && continue | ||
| [ -f "$sh_file" ] || continue | ||
| base_name=$(basename "$sh_file" .sh) | ||
| meta_file="./staging/${base_name}.meta" | ||
| if [ -f "$meta_file" ]; then | ||
| parent=$(awk -F= '/^parent=/{print $2}' "$meta_file" | head -n1) | ||
| conf_file="./staging/${base_name}.conf" | ||
| if [ -f "$conf_file" ]; then | ||
| parent=$(awk -F= '/^parent=/{print $2}' "$conf_file" | head -n1) | ||
Tearran marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| if [ -n "$parent" ]; then | ||
| dest_dir="./src/$parent" | ||
| mkdir -p "$dest_dir" | ||
| echo "Moving $sh_file and $meta_file to $dest_dir/" | ||
| echo "Moving $sh_file and $conf_file to $dest_dir/" | ||
| mv "$sh_file" "$dest_dir/" | ||
| mv "$meta_file" "$dest_dir/" | ||
| mv "$conf_file" "$dest_dir/" | ||
| else | ||
| echo "No parent= in $meta_file, skipping $sh_file" | ||
| echo "No parent= in $conf_file, skipping $sh_file" | ||
| fi | ||
| fi | ||
| done | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.