From cef72981d485fed3198494e45de6929d4144bf15 Mon Sep 17 00:00:00 2001 From: lxoliva Date: Sun, 8 Mar 2009 11:32:32 +0000 Subject: [PATCH] Tee output to .log file. git-svn-id: http://www.fsfla.org/svn/fsfla/software/linux-libre/scripts@4753 559672b5-ba27-0410-b829-e8f1faed8b1b --- deblob-main | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/deblob-main b/deblob-main index 21c62ec1027..fb9a0e4fb41 100755 --- a/deblob-main +++ b/deblob-main @@ -1,6 +1,6 @@ #! /bin/sh -# Copyright (C) 2008 Alexandre Oliva +# Copyright (C) 2008, 2009 Alexandre Oliva # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -113,6 +113,11 @@ if test -f linux-$kver-$libre.patch; then exit 1 fi +if test -f linux-$kver-$libre.log; then + echo linux-$kver-$libre.log already exists >&2 + exit 1 +fi + if test -f linux-$kver-$libre.xdelta; then echo linux-$kver-$libre.xdelta already exists >&2 exit 1 @@ -173,8 +178,8 @@ echo Copying linux-$kver to linux-$kver-$libre cp linux-$kver.tar linux-$kver-$libre.tar cp -lR linux-$kver/. linux-$kver-$libre -echo Deblobbing within linux-$kver-$libre -if (cd linux-$kver-$libre && /bin/sh ../$deblob $force); then +echo Deblobbing within linux-$kver-$libre, saving output to linux-$kver-$libre.log +if (cd linux-$kver-$libre && /bin/sh ../$deblob $force) 2>&1 | tee -a linux-$kver-$libre.log; then : else echo $deblob failed, aborting >&2 -- 2.31.1