mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-14 23:46:10 +00:00
9478eafe5e
portbuild temporary mounts, deletes all the chroot dirs and copies the portbuild script and the correct bindist tarball.
12 lines
385 B
Bash
Executable File
12 lines
385 B
Bash
Executable File
#!/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
|