Date: Wed, 20 Sep 2006 14:14:26 -0700 From: MC <rossiya@gmail.com> To: freebsd-ports@freebsd.org Subject: Re: Basic Diff question Message-ID: <28a99ba50609201414y274d18f3wdd2c08059d2dd34d@mail.gmail.com> In-Reply-To: <20060918223639.GA1946@icarus.home.lan> References: <28a99ba50609181526s6a3ab59btfca1d6517b89c951@mail.gmail.com> <20060918223639.GA1946@icarus.home.lan>
next in thread | previous in thread | raw e-mail | index | archive | help
I made a few minor chnages and now the diff bash script should put all the new files into the patch as well, while naming the old files with the '.orig' suffix virtual7:# cat diffOMatic.sh #Takes two arguments which are old/ and new/ respectively diffOMatic() { ( cd $2/; find . -type f ) | while read f; do #echo $f if [ -f "$1/$f" ]; then cp -n $1/$f "$2/$f".orig fi; touch "$2/$f".orig ( cd $2/; diff --ignore-all-space -u "$f".orig $f; ) rm "$2/$f".orig done } diffOMatic work/FFFF323-src/ FFFF323-src/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?28a99ba50609201414y274d18f3wdd2c08059d2dd34d>