summaryrefslogtreecommitdiff
path: root/mipsrelease
diff options
context:
space:
mode:
authorJoshua Ismael Haase Hernández <hahj87@gmail.com>2011-05-10 17:06:16 -0500
committerJoshua Ismael Haase Hernández <hahj87@gmail.com>2011-05-10 17:06:16 -0500
commit0cb622f771024f739b84eb0522c85eb2768c2820 (patch)
treed69888bc25dec54e58c38f3cac0c3902a98e5d4a /mipsrelease
parentd7e07174e2dae3d1bd9ec79c90cba9912f2cef0f (diff)
parent0e929530a592dec84439a1c71ca57513517b8e94 (diff)
Merge branch 'master' of vparabola:~/projects/libretools
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 $?