diff options
author | Nicolas Reynolds <fauno@kiwwwi.com.ar> | 2011-06-09 20:00:26 -0300 |
---|---|---|
committer | Nicolas Reynolds <fauno@kiwwwi.com.ar> | 2011-06-09 20:00:26 -0300 |
commit | 4d4439b1b9b5ab83981407e06e3a85bf1144d6cd (patch) | |
tree | e47736eb10ede7468da45e5993bfd7e2e74ae4b3 /mipsrelease | |
parent | 34fc8f48c893714be74e90d65b8e3132ae4ef6f0 (diff) |
Changed mipsrelease into a hook that's meant to run for local releases. For
mipsrelease, it adds packages to a local repo and copies all needed build files
to a dir on WORKDIR.
Diffstat (limited to 'mipsrelease')
-rwxr-xr-x | mipsrelease | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/mipsrelease b/mipsrelease index 400e9f1..140e524 100755 --- a/mipsrelease +++ b/mipsrelease @@ -1,11 +1,28 @@ #!/bin/bash -# Temporary script for uploading mips64el packages to the server +# Lic: GPLv3+ +# Author: Nicolas Reynolds <fauno@kiwwwi.com.ar> +# Local release of mips64el packages + clean ABS sync +# Called by HOOKLOCALRELEASE + +# $1 repo +# $2+ packages source /etc/makepkg.conf +repo=$1; shift + pushd ${PKGDEST} >/dev/null -repo-add stage3.db.tar.gz $@ + repo-add stage3.db.tar.gz $@ +popd >/dev/null + +# Get all needed sources +source PKGBUILD +makepkg --source + +[ ! -d ${WORKDIR}/abs/${CARCH}/${repo} ] && mkdir -p ${WORKDIR}/${CARCH}/${repo} >/dev/null +pushd ${WORKDIR}/abs/${CARCH}/${repo} >/dev/null + tar xvf $SRCPKGDEST/${pkgbase:-${pkgname[0]}}-${pkgver}-${pkgrel}-${CARCH}${SRCEXT} popd >/dev/null exit $? |