does not implement the -I control arg.
git-svn-id: file:///home/svn/build-farm/trunk@727
1e5ffdc8-eadd-0310-9daa-
9cb4117fe24b
chmod 0644 "$log" "$err"
XARGS_I="xargs -I '{}'"
+ if [ "`uname`" = "VOS" ]; then
+ XARGS_I="xargs -i"
+ fi
find $log -size +40000 | $XARGS_I sh -c 'dd if={} bs=1024 count=20000 of={}.tmp && mv {}.tmp {} && echo "\n***LOG TRUNCATED***" >> {}'
find $err -size +40000 | $XARGS_I sh -c 'dd if={} bs=1024 count=20000 of={}.tmp && mv {}.tmp {} && echo "\n***LOG TRUNCATED***" >> {}'