summaryrefslogtreecommitdiff
path: root/mipsrelease
diff options
context:
space:
mode:
Diffstat (limited to 'mipsrelease')
-rwxr-xr-xmipsrelease20
1 files changed, 16 insertions, 4 deletions
diff --git a/mipsrelease b/mipsrelease
index 82cd51f..46c02ce 100755
--- a/mipsrelease
+++ b/mipsrelease
@@ -4,14 +4,26 @@
source /etc/makepkg.conf
source /etc/libretools.conf
+trap_not_uploaded () {
+
+}
+
+msg "Uploading packages"
for pkg in $@; do
- scp $pkg ${PARABOLAHOST}:mips64el/stage3/
+ msg2 "$pkg"
+ scp $pkg ${PARABOLAHOST}:mips64el/stage3/ ||{
+ error "Failed to upload ${pkg}"
+ plain "Try running this command again:"
+ echo
+ plain "$0 $@"
+ exit 1
+}
done
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/
-
-#ssh parabola bash -c "cd /home/parabolavnx/mips64el/stage3/ ; repo-add stage3.db.tar.gz $@"
+scp ${SRCDEST}/stage3.db.tar.gz ${PARABOLAHOST}:mips64el/stage3/ || {
+ error "Could not update db"
+}
exit $?