Age | Commit message (Collapse) | Author |
|
Conflicts:
src/abslibre-tools/createworkdir
|
|
|
|
|
|
|
|
There are a bunch of caveats to loading a PKGBUILD file. This way it is
all done correctly in one place.
unset_PKGBUILD unsets any functions and variables that are normally set in
a PKGBUILD. The list is far more complete than any existing
implementation.
load_PKGBUILD loads the file given, or "./PKGBUILD" if none is given. But
first it calls unset_PKGBUILD and then sets CARCH.
|
|
|
|
This for users who cross-compile for multiple architectures.
|
|
Unfortunately for me, that means that it works correctly *most* of the
time. But, for example, [[ 10 < 2 ]], and negatives don't work.
|
|
|
|
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"
|
|
|
|
|
|
|
|
This fixes a bug with it assuming that version is the same across split
packages (and possibly other bugs).
|
|
|