Age | Commit message (Collapse) | Author |
|
|
|
|
|
This mimics the behavior of makepkg.
|
|
|
|
|
|
|
|
Besides a few code-technique things,
- delay executing an action like clean until all options are parsed;
before `librerelease -nc` and `librerelease -nc` were very
different.
- fix the clean action
|
|
|
|
|
|
also, use print(), which has gettext support built in
|
|
|
|
|
|
Contained the text "# TODO refactor this", and I can't just stick to that
fragment of code, can I?
I actually didn't change too much, despite what the diff looks like.
- move everything into a main() routine
- redo the usage() text
- rename a few variables
- fix where "${#repos}" should have been "${#repos[@]}"
- use [[...]] instead of [...]
- use "if A; then B; else C; fi" instead of "A || C && B"
- use CARCH instead of looping over every possible architecture.
- only look for files that match PKGEXT, as set in makepkg.conf
- pull out duplicate code for error handling
- don't warn when creating "staging/REPONAME"
|
|
|
|
|
|
|
|
They didn't pass because on several errors it printed to stdout, not stderr
|
|
|
|
|
|
Replace their usages with `load_files *` and `check_vars *`
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Fix this and remove code duplication by pulling the relevant code into a
function.
|
|
|
|
|