Basic Diff question
MC
rossiya at gmail.com
Wed Sep 20 14:14:29 PDT 2006
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/
More information about the freebsd-ports
mailing list