summaryrefslogtreecommitdiff
path: root/mipsrelease
blob: 07d27ecb97fea2bc524fef3109a99dbab05c1222 (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
#!/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

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"
}

exit $?