aboutsummaryrefslogtreecommitdiffstats
path: root/Tools/scripts
diff options
context:
space:
mode:
authortrevor <trevor@FreeBSD.org>2004-03-16 05:46:49 +0800
committertrevor <trevor@FreeBSD.org>2004-03-16 05:46:49 +0800
commit91d7b88d304be57f98f68de9fa773f67cfbd0ff2 (patch)
tree74d2bc059b9b39ada6337177917f7b3b94555892 /Tools/scripts
parente5e74e9e1e6ae9f1f42558ff2900d8aeff5d3574 (diff)
downloadfreebsd-ports-gnome-91d7b88d304be57f98f68de9fa773f67cfbd0ff2.tar.gz
freebsd-ports-gnome-91d7b88d304be57f98f68de9fa773f67cfbd0ff2.tar.zst
freebsd-ports-gnome-91d7b88d304be57f98f68de9fa773f67cfbd0ff2.zip
Fill /mnt/ before each port and clear it afterward, to avoid running
out of inodes.
Diffstat (limited to 'Tools/scripts')
-rwxr-xr-xTools/scripts/checksize.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/Tools/scripts/checksize.sh b/Tools/scripts/checksize.sh
index 43dd7a6cfb87..b86daf7ab7ca 100755
--- a/Tools/scripts/checksize.sh
+++ b/Tools/scripts/checksize.sh
@@ -13,7 +13,6 @@
# mdconfig -a -t vnode -f /usr/ports/mfs.img -u 1
# newfs /dev/md1
# mount /dev/md1 /mnt
-# dd if=/dev/zero of=/mnt/zero
#
# (for RELENG_4 use vnconfig instead of mdconfig). Then run this
# while logging with, for example, the "script" utility and look
@@ -50,6 +49,7 @@ for category in $1 `grep ^SUBDIR /usr/ports/Makefile | cut -f3 -d\ `; do
`grep -wc SIZE */distinfo* | grep -v :0 | cut -f1 -d\/`; do
cd /usr/ports/$category/$port
for arc in i386; do
+ dd if=/dev/zero of=/mnt/zero
echo checking $arc size data for $category/$port
make DISTDIR=/mnt \
ARCH=$arc \
@@ -57,6 +57,7 @@ for category in $1 `grep ^SUBDIR /usr/ports/Makefile | cut -f3 -d\ `; do
MACHINE_ARCH=$arc \
PACKAGE_BUILDING=yes \
TRYBROKEN=yes checksum
+ rm -rf /mnt/*
done
done
done