summaryrefslogtreecommitdiff
path: root/mips64el/mipsrelease
diff options
context:
space:
mode:
Diffstat (limited to 'mips64el/mipsrelease')
-rwxr-xr-xmips64el/mipsrelease9
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 $?