blob: f62a44dd8e53cba55c2488e45eabe0c1dfd0dfbf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#!/bin/bash
# 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
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"
}
exit $?
|