diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2019-08-09 14:31:53 -0400 |
---|---|---|
committer | Levente Polyak <anthraxx@archlinux.org> | 2019-11-07 21:28:21 +0100 |
commit | 751093eff2cbd0df422b69810787b4fcf3d33208 (patch) | |
tree | 1d459c815e8b9506e7775bcf12b0d46cdea7aa86 /offload-build | |
parent | f43a86ee8a3a3bfbdc32c2d70516d945afcd8515 (diff) | |
download | devtools32-751093eff2cbd0df422b69810787b4fcf3d33208.tar.xz |
use libmakepkg to find and use variables in makepkg.conf
- drop homebrew function in makechrootpkg
- use better mock to find invoking user's $HOME
- make offload-build respect makepkg.conf to determine where to sync
files, matching the behavior of makechrootpkg
Signed-off-by: Eli Schwartz <eschwartz@archlinux.org>
Signed-off-by: Levente Polyak <anthraxx@archlinux.org>
Diffstat (limited to 'offload-build')
-rwxr-xr-x | offload-build | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/offload-build b/offload-build index 7a07b15..078796a 100755 --- a/offload-build +++ b/offload-build @@ -18,6 +18,8 @@ # along with this program. If not, see <https://www.gnu.org/licenses/>. # +source /usr/share/makepkg/util/config.sh + # global defaults suitable for use by Arch staff repo=extra @@ -105,4 +107,9 @@ mapfile -t files < <( makepkg --packagelist ') -(( ${#files[@]} )) && printf '%s\n' '' '-> copying files...' && scp "${files[@]/#/$server:}" . + +if (( ${#files[@]} )); then + printf '%s\n' '' '-> copying files...' + load_makepkg_config + scp "${files[@]/#/$server:}" "${PKGDEST:-${PWD}}/" +fi |