diff options
author | Nicolás Reynolds <apoyosis@correo.inta.gob.ar> | 2011-09-19 11:02:54 -0300 |
---|---|---|
committer | Nicolás Reynolds <apoyosis@correo.inta.gob.ar> | 2011-09-19 11:02:54 -0300 |
commit | 0663c0c58a8d04a35f5ba9ab6de068a3f6c09b40 (patch) | |
tree | 46bc1b0b26d75db7aeb17c24615e5ef83d32355b /mips64el/mipsrelease | |
parent | 1cc99571dd8b5f250909025a1c4df73510087899 (diff) | |
parent | 32acbf2d80898a1139325f3d058753b125c0bd7e (diff) |
Merge branch 'master' of ssh://gparabola/libretools
Conflicts:
librerelease
Diffstat (limited to 'mips64el/mipsrelease')
-rwxr-xr-x | mips64el/mipsrelease | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/mips64el/mipsrelease b/mips64el/mipsrelease index dae489c..1a4aade 100755 --- a/mips64el/mipsrelease +++ b/mips64el/mipsrelease @@ -10,6 +10,8 @@ source /etc/makepkg.conf source /etc/libretools.conf +libretoolsdir="$(dirname $0)/../" + usage() { echo "$0 repo package1 [ package2 ... packageN ]" echo @@ -35,14 +37,17 @@ repo=$1; shift # Get all needed sources source PKGBUILD fullver=$(get_full_version ${epoch:-0} ${pkgver} ${pkgrel}) +pkgs=() makepkg --source -f msg "Adding packages to [stage3]..." for name in ${pkgname[@]}; do msg2 "${name} ${fullver}" - repo-add ${PKGDEST}/stage3.db.tar.gz ${PKGDEST}/${name}-${fullver}-*.pkg.tar.* + pkgs+=("${PKGDEST}/${name}-${fullver}-*.pkg.tar.*") done +repo-add ${PKGDEST}/stage3.db.tar.gz ${pkgs[@]} + mkdir -p ${WORKDIR}/abs/${CARCH}/${repo} >/dev/null @@ -50,4 +55,6 @@ pushd ${WORKDIR}/abs/${CARCH}/${repo} >/dev/null tar xvf $SRCPKGDEST/${pkgbase:-${pkgname[0]}}-${fullver}${SRCEXT} popd >/dev/null +$libretoolsdir/chcleanup || true + exit $? |