summaryrefslogtreecommitdiff
path: root/librerepkg
diff options
context:
space:
mode:
Diffstat (limited to 'librerepkg')
-rwxr-xr-xlibrerepkg14
1 files changed, 9 insertions, 5 deletions
diff --git a/librerepkg b/librerepkg
index 11962ff..5125023 100755
--- a/librerepkg
+++ b/librerepkg
@@ -47,13 +47,17 @@ while getopts 'h' arg; do
esac
done
-stdnull "tempdir=$(mktemp -d /tmp/$(basename $PWD).XXXXX)"
+tempdir=$(mktemp -d /tmp/$(basename $PWD).XXXXX)
msg "Repackaging: $pkgname $pkgver-$pkgrel ($(date -u))"
cp ./* ${tempdir}/
-stdnull "pushd ${tempdir}"
+
+stdnull pushd ${tempdir}
+
msg2 "Updating md5sums"
-makepkg -gp rePKGBUILD >> PKGBUILD
+makepkg -gp rePKGBUILD >> rePKGBUILD
+
msg "Repackaging using makepkg"
-makepkg -Lcp rePKGBULD
-stdnull "popd ${tempdir}"
+makepkg -Lcp rePKGBUILD
+
+stdnull popd ${tempdir}