blob: 46c02ce9c006a5d67a6866bff8254a050468300d (
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
26
27
28
29
|
#!/bin/bash
# Temporary script for uploading mips64el packages to the server
source /etc/makepkg.conf
source /etc/libretools.conf
trap_not_uploaded () {
}
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 $?
|