summaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2006-09-14 05:21:49 +0000
committerKris Kennaway <kris@FreeBSD.org>2006-09-14 05:21:49 +0000
commit2df0e38d60e16eef3d6dcb724027115478be3601 (patch)
tree64bff4da087fb196c08f7509cc8207472db82151 /Tools
parent* Silence gconf spam from the mtree checks (for now) (diff)
* Retire 4-exp builds and add support for 6-exp.
* Use a generation number for the bindist tarballs, with compatibility symlink. Eventually we'll use this to avoid building in a "stale" chroot (i.e. populated by old world). * Don't bother running ldconfig on i386, it is evidently not needed since the other arches work fine without it
Notes
Notes: svn path=/head/; revision=172999
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/portbuild/scripts/mkbindist23
1 files changed, 12 insertions, 11 deletions
diff --git a/Tools/portbuild/scripts/mkbindist b/Tools/portbuild/scripts/mkbindist
index 249ce6ef401f..fb3dc49732ef 100755
--- a/Tools/portbuild/scripts/mkbindist
+++ b/Tools/portbuild/scripts/mkbindist
@@ -10,7 +10,7 @@ fi
arch=$1
branch=$2
-if [ "x$branch" != x4 -a "x$branch" != x4-exp -a "x$branch" != x5 -a "x$branch" != x5-exp -a "x$branch" != x6 -a "x$branch" != x7 ]; then
+if [ "x$branch" != x4 -a "x$branch" != x5 -a "x$branch" != x6-exp -a "x$branch" != x6 -a "x$branch" != x7 ]; then
usage
fi
@@ -77,24 +77,25 @@ mkdir -p $(cat ${here}/bindist/dirlist)
(cd ${here}/bindist/files; find -dx . | cpio -dump ${tmpdir})
# Post-processing of installed world
-
date '+%Y%m%d' > var/db/port.mkversion
-
rm -f kernel.GENERIC
-
mkdir ${tmpdir}/var/run
-chroot ${tmpdir} /sbin/ldconfig /usr/lib
-if [ "${arch}" = "i386" ]; then
- chroot ${tmpdir} /sbin/ldconfig -aout /usr/lib/aout
- rm -f /usr/lib/aout/lib*_p.a
-fi
-
# Create the tarballs
mkdir -p ${here}/tarballs
+
+if [ -f ${here}/tarballs/.gen ]; then
+ gen=$(cat ${here}/tarballs/.gen)
+else
+ gen=0
+fi
+newgen=$((${gen}+1))
+
cd ${tmpdir}
tar cf ${here}/tarballs/bindist.tar.new .
-mv -f ${here}/tarballs/bindist.tar.new ${here}/tarballs/bindist.tar
+rm -f ${here}/tarballs/bindist-${gen}.tar
+mv -f ${here}/tarballs/bindist.tar.new ${here}/tarballs/bindist-${newgen}.tar
+ln -sf ${here}/tarballs/bindist-${newgen}.tar ${here}/tarballs/bindist.tar
# Clean up
cd ${here}