aboutsummaryrefslogtreecommitdiff
path: root/Tools/portbuild
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2006-04-03 04:40:10 +0000
committerKris Kennaway <kris@FreeBSD.org>2006-04-03 04:40:10 +0000
commit6b9fc3cfd17cb05fa6a4526d832ebf3bfdc79d76 (patch)
treec322ed7d5aa6c0e5e4aa52c1c73ce3b89f107b9b /Tools/portbuild
parentd00ce7f8cffcb8fa2be59e0f901f5aa6442929b3 (diff)
downloadports-6b9fc3cfd17cb05fa6a4526d832ebf3bfdc79d76.tar.gz
ports-6b9fc3cfd17cb05fa6a4526d832ebf3bfdc79d76.zip
Notes
Diffstat (limited to 'Tools/portbuild')
-rwxr-xr-xTools/portbuild/scripts/keeprestr11
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/