Revert to using "xargs -i" on VOS because its version of xargs
authorpaulg <paulg@1e5ffdc8-eadd-0310-9daa-9cb4117fe24b>
Mon, 31 Dec 2007 18:26:12 +0000 (18:26 +0000)
committerpaulg <paulg@1e5ffdc8-eadd-0310-9daa-9cb4117fe24b>
Mon, 31 Dec 2007 18:26:12 +0000 (18:26 +0000)
does not implement the -I control arg.

git-svn-id: file:///home/svn/build-farm/trunk@727 1e5ffdc8-eadd-0310-9daa-9cb4117fe24b

build_test.fns

index 3f30c83d599ce455d1c82e02aded9ee04fdb36bb..e24a9349b5fc83ee4f39355af92f6c30c07ad5a5 100644 (file)
@@ -59,6 +59,9 @@ send_logs() {
                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***" >> {}'