diff options
author | kris <kris@FreeBSD.org> | 2006-04-03 04:40:10 +0000 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2006-04-03 04:40:10 +0000 |
commit | 2b17b9f62c6c632052750112b687b978068a7122 (patch) | |
tree | ecdd3fc1e0a8f26821d7997695a0f7f8a0837e6a /Tools | |
parent | 2158a0efce4f044dd87ebea839a824c46b6d5019 (diff) | |
download | FreeBSD-ports-2b17b9f62c6c632052750112b687b978068a7122.zip FreeBSD-ports-2b17b9f62c6c632052750112b687b978068a7122.tar.gz |
This script preserves packages that will be removed by the restricted.sh
script, i.e. so they can be moved back into place before start the next
incremental build so they won't be needlessly rebuilt every time (jdk, I'm
looking at you). It is a bit of a hack since it relies on assumptions
about the structure of that shell script, but for now it's the best we
can do.
Diffstat (limited to 'Tools')
-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 0000000..01b487ab --- /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/ |