blob: 72dcb01908de0575c03e7b6621851be48631d7ce (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
#!/bin/sh
if [ $# != 3 ]; then
echo "usage: $0 master portbuilddir branch"
exit 1
fi
if [ $(echo $(/sbin/mount | grep "$2/.*(read-only)" | awk '{print $3}' | wc -c)) != 0 ]; then
/sbin/umount -f $(/sbin/mount | grep "$2/.*(read-only)" | awk '{print $3}')
fi
rm -rf $2/*/chroot/*
scp -p -a $1:$2/scripts/portbuild $2/scripts
scp -p -a $1:$2/$3/tarballs/bindist.tar $2/$3/tarballs
|