diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2014-12-29 03:08:09 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2014-12-29 03:08:09 -0500 |
commit | bfbb55ed6430f6b4d9bb49d4f2592ef9a5713e75 (patch) | |
tree | 763a032515d692ad787e0d5ef5b90e5339c18cfd /get | |
parent | 0264bd2989c282c8ffaa13e1c491aa529789565e (diff) |
refactor (again): new download script, separate architectures, modules
Diffstat (limited to 'get')
-rwxr-xr-x | get | 46 |
1 files changed, 0 insertions, 46 deletions
@@ -1,46 +0,0 @@ -#!/bin/bash - -pkg=$1 - -pkgbuild="$(mktemp --tmpdir libreboot.XXXXXXXXXX)" -makepkg_conf="$(mktemp --tmpdir libreboot.XXXXXXXXXX)" -trap "rm -f -- $(printf -- '%q ' "$pkgbuild" "$makepkg_conf")" EXIT - -get() { - pkg="$1" - { - # Bogus stuff to keep makepkg happy - printf 'pkgname=%q\n' "$pkg" - printf 'pkgver=libreboot\n' - printf 'pkgrel=1\n' - printf 'arch=(any)\n' - printf 'package() { :; }\n' - printf 'md5sums=(SKIP)\n' - # Actual stuff we care about - printf 'source=("${%s_source}")\n' "$pkg" - printf 'if type %s_mksource &>/dev/null; then\n' "$pkg" - printf 'prepare() { resources=%q; %s_mksource; }\n' "$PWD/resources" "$pkg" - printf 'fi\n' - } | cat source-locations.sh - > "$pkgbuild" - - makepkg -o -p "$pkgbuild" --config "$makepkg_conf" -} - -main() { - { - printf -- '%s\n' \ - "DLAGENTS=('ftp::/usr/bin/curl -fC - --ftp-pasv --retry 3 --retry-delay 3 -o %o %u'" \ - " 'http::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %o %u'" \ - " 'https::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %o %u'" \ - " 'rsync::/usr/bin/rsync --no-motd -z %u %o'" \ - " 'scp::/usr/bin/scp -C %u %o')" - printf 'BUILDENV=(fakeroot color)\n' - printf 'SRCDEST=%q\n' "$PWD/src/downloads" - } > "$makepkg_conf" - mkdir -p -- "$PWD/src/downloads" - for pkg in "$@"; do - get "$pkg" - done -} - -main "$@" |