-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
implement upstream diffs, implement shellcheck
* stop ever relying on current dir, current environment etc. This opens possibility for future concurrent workflow. * add logging * stop enforcing of target/ being the PKGDEST. Use more flexible by-file tar review. * resolve dependencies via RAUR library instead of relying on .SRCINFO-s * add a separate `shellcheck` command for RUA, with built-in handling of PKGBUILD variables * move all `include_bytes!` macros to one place fixes GH-1, fixes GH-41, replaces GH-37, supersedes GH-42.
- Loading branch information
Vasili Novikov
committed
Aug 16, 2019
1 parent
19add7e
commit 0459a8b
Showing
20 changed files
with
515 additions
and
311 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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,64 @@ | ||
#!/bin/bash -euET | ||
|
||
## use as: | ||
## shellcheck --check-sourced --norc -x < shellcheck-wrapper | ||
|
||
# declare variables used by PKGBUILD | ||
srcdir= | ||
pkgdir= | ||
|
||
# source it! | ||
source PKGBUILD | ||
|
||
# ensure that obligatory PKGBUILD values are defined, and avoid "unused" warning for them: | ||
test "${#pkgname[@]}" -gt 0 | ||
test "${#pkgver[@]}" -gt 0 | ||
test "${#pkgrel[@]}" -gt 0 | ||
test "${#arch[@]}" -gt 0 | ||
|
||
# avoid "unused" warning for optional PKGBUILD variables: | ||
export epoch | ||
export pkgdesc | ||
export url | ||
export license | ||
export install | ||
export changelog | ||
export source | ||
export source_x86_64 | ||
export source_i686 | ||
export validpgpkeys | ||
export noextract | ||
export md5sums | ||
export sha1sums | ||
export sha224sums | ||
export sha256sums | ||
export sha384sums | ||
export sha512sums | ||
export groups | ||
export backup | ||
export depends | ||
export depends_x86_64 | ||
export depends_i686 | ||
export makedepends | ||
export makedepends_x86_64 | ||
export makedepends_i686 | ||
export checkdepends | ||
export checkdepends_x86_64 | ||
export checkdepends_i686 | ||
export optdepends | ||
export optdepends_x86_64 | ||
export optdepends_i686 | ||
export conflicts | ||
export conflicts_x86_64 | ||
export conflicts_i686 | ||
export provides | ||
export provides_x86_64 | ||
export provides_i686 | ||
export replaces | ||
export replaces_x86_64 | ||
export replaces_i686 | ||
export options | ||
|
||
# avoid "unused" warning for variables defined _for_ PKGBUILD | ||
export srcdir | ||
export pkgdir |
File renamed without changes.
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.