summaryrefslogtreecommitdiff
path: root/mipsrelease
diff options
context:
space:
mode:
authorNicolás Reynolds <apoyosis@correo.inta.gob.ar>2011-05-16 19:14:47 -0300
committerNicolás Reynolds <apoyosis@correo.inta.gob.ar>2011-05-16 19:14:47 -0300
commitbf87a77517cb5d960865faaf820decaa338c4f63 (patch)
tree6c10ea4f2a80ae3d5df3ae08b40f6ad5c9195ed6 /mipsrelease
parent56e183631d6e4e12df4990d119456dd81423938e (diff)
parent76c75b8971e4ad2f6c336c9413088e6fd0e70f69 (diff)
Merge branch 'master' of ssh://vparabola/srv/git/projects/libretools
Conflicts: libremakepkg
Diffstat (limited to 'mipsrelease')
-rwxr-xr-xmipsrelease22
1 files changed, 4 insertions, 18 deletions
diff --git a/mipsrelease b/mipsrelease
index 07d27ec..97e12d2 100755
--- a/mipsrelease
+++ b/mipsrelease
@@ -2,25 +2,11 @@
# Temporary script for uploading mips64el packages to the server
source /etc/makepkg.conf
-source /etc/libretools.conf
-msg "Uploading packages"
-for pkg in $@; do
- msg2 "$pkg"
- scp $pkg ${PARABOLAHOST}:mips64el/stage3/ ||{
- error "Failed to upload ${pkg}"
- plain "Try running this command again:"
- echo
- plain "$0 $@"
- exit 1
- }
-done
+pushd ${PKGDEST} >/dev/null
-msg "Updating db"
-scp ${PARABOLAHOST}:mips64el/stage3/stage3.db.tar.gz ${SRCDEST}/ && \
-repo-add ${SRCDEST}/stage3.db.tar.gz $@ && \
-scp ${SRCDEST}/stage3.db.tar.gz ${PARABOLAHOST}:mips64el/stage3/ || {
- error "Could not update db"
-}
+repo-add stage3.db.tar.gz $@
+
+popd >/dev/null
exit $?