summaryrefslogtreecommitdiff
path: root/librerepkg
diff options
context:
space:
mode:
authorNicolás Reynolds <apoyosis@correo.inta.gob.ar>2012-05-10 14:58:40 -0300
committerNicolás Reynolds <apoyosis@correo.inta.gob.ar>2012-05-10 14:58:40 -0300
commit38c96cd82f5cab2599823a546269c184435c7656 (patch)
tree356cd5958b7706123b203da53aac836f203066b9 /librerepkg
parent4ef5bc5568d52e4ee151b1e0f7e10e840c9bc588 (diff)
Repackage every architecture in the arch array
Diffstat (limited to 'librerepkg')
-rwxr-xr-xlibrerepkg7
1 files changed, 5 insertions, 2 deletions
diff --git a/librerepkg b/librerepkg
index c33a538..d506003 100755
--- a/librerepkg
+++ b/librerepkg
@@ -51,17 +51,20 @@ makepkgflags=$@
tempdir=$(mktemp -d /tmp/$(basename $PWD).XXXXX)
+msg "Copying files"
+cp ./* ${tempdir}/
+
for _arch in ${arch[@]}; do
- export CARCH=${_arch}
msg "Repackaging: $pkgname $pkgver-$pkgrel ($(date -u))"
- cp ./* ${tempdir}/
stdnull pushd ${tempdir}
msg2 "Updating md5sums"
makepkg -gp rePKGBUILD >> rePKGBUILD
+ echo "export CARCH=${_arch}" >> rePKGBUILD
+
msg "Repackaging using makepkg"
makepkg -Lcdp rePKGBUILD ${makepkgflags}