diff options
author | Kris Kennaway <kris@FreeBSD.org> | 2006-04-03 04:40:10 +0000 |
---|---|---|
committer | Kris Kennaway <kris@FreeBSD.org> | 2006-04-03 04:40:10 +0000 |
commit | 6b9fc3cfd17cb05fa6a4526d832ebf3bfdc79d76 (patch) | |
tree | c322ed7d5aa6c0e5e4aa52c1c73ce3b89f107b9b /Tools/portbuild | |
parent | d00ce7f8cffcb8fa2be59e0f901f5aa6442929b3 (diff) | |
download | ports-6b9fc3cfd17cb05fa6a4526d832ebf3bfdc79d76.tar.gz ports-6b9fc3cfd17cb05fa6a4526d832ebf3bfdc79d76.zip |
Notes
Diffstat (limited to 'Tools/portbuild')
-rwxr-xr-x | Tools/portbuild/scripts/keeprestr | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Tools/portbuild/scripts/keeprestr b/Tools/portbuild/scripts/keeprestr new file mode 100755 index 000000000000..01b487ab1e7c --- /dev/null +++ b/Tools/portbuild/scripts/keeprestr @@ -0,0 +1,11 @@ +#!/bin/sh + +arch=$1 +branch=$2 + +cd /var/portbuild/${arch}/${branch} + +rm -rf bak/restricted +mkdir -p bak/restricted + +tar cvf - `tr ';' '\n' < restricted.sh | grep "/bin/rm -f" | awk '{print $3}' | grep packages/ | sed -e "s,/var/portbuild/${arch}/${branch}/,," -e 's,)$,,' ` | tar xfCP - bak/restricted/ |