diff options
author | Nicolás Reynolds <apoyosis@correo.inta.gob.ar> | 2011-12-22 22:08:52 -0300 |
---|---|---|
committer | Nicolás Reynolds <apoyosis@correo.inta.gob.ar> | 2011-12-22 22:08:52 -0300 |
commit | 074e2054d5a1d8b9978d48dc019b0e714efd42aa (patch) | |
tree | 790a09714f3270aa4427d92b3bb00b9c2f89a50c /librerepkg | |
parent | cccba27ea8ec823a9768ba2cd944edab53697bb1 (diff) |
Repackage all architectures at once
Diffstat (limited to 'librerepkg')
-rwxr-xr-x | librerepkg | 23 |
1 files changed, 14 insertions, 9 deletions
@@ -44,21 +44,26 @@ usage() { while getopts 'h' arg; do case $arg in h) usage; exit 0 ;; - *) makepkgflags=$@ ;; esac done +makepkgflags=$@ + tempdir=$(mktemp -d /tmp/$(basename $PWD).XXXXX) -msg "Repackaging: $pkgname $pkgver-$pkgrel ($(date -u))" -cp ./* ${tempdir}/ +for _arch in ${arch[@]}; do + export CARCH=${_arch} + + msg "Repackaging: $pkgname $pkgver-$pkgrel ($(date -u))" + cp ./* ${tempdir}/ -stdnull pushd ${tempdir} + stdnull pushd ${tempdir} -msg2 "Updating md5sums" -makepkg -gp rePKGBUILD >> rePKGBUILD + msg2 "Updating md5sums" + makepkg -gp rePKGBUILD >> rePKGBUILD -msg "Repackaging using makepkg" -makepkg -Lcdp rePKGBUILD ${makepkgflags} + msg "Repackaging using makepkg" + makepkg -Lcdp rePKGBUILD ${makepkgflags} -stdnull popd ${tempdir} + stdnull popd ${tempdir} +done |