Re: diff with mc

Am Sun, 02 Mar 2003 23:02:02 +0100
Nicola Larosa <nico tekNico net> schrieb:

is mc able to diff two directories? I want to select
diretories/files on each side and then create a diff file between

Menu Command | Compare Directories , it's been there for ages.

Yes, there is "Quick - Size only - Thorough" but when I press one of
those buttons, only all files are selected and the size is compared. But
I want to create a diff-file like:

# diff directory_marked_left directory_marked_right > .mc/diff1

the result should be something like:
Only in teledat_usb: TODO~
Only in ../AVM/SuSE8.1/fritz/: c4l-lib-2002.11.20-1.i386.rpm
Only in ../AVM/SuSE8.1/fritz/: c4l-sys-2002.09.13-1.i386.rpm
Only in teledat_usb: capi4linux
Only in ../AVM/SuSE8.1/fritz/: compile-help-english.txt
Only in ../AVM/SuSE8.1/fritz/: compile-help-german.txt
Only in teledat_usb: configure
Only in teledat_usb: configure.functions
Only in teledat_usb: configure.functions~
Only in teledat_usb: configure~

Or sometimes I like to do this automatic by mc:

diff file_marked_left file_marked_right > .mc/file_diff1

and result should be:

LIBRARY               = ../lib/$(CARD)-lib.o
< CARD_PATH     = /lib/modules/`uname -r`/kernel/drivers/isdn
< CARD_PATH_OLD = /lib/modules/`uname -r`/misc
CARD_PATH     = /lib/modules/`uname -r`/misc
< #KRNLINCL     = /lib/modules/`uname -r`/build/include
< KRNLINCL      = /usr/src/linux/include
KRNLINCL      = /lib/modules/`uname -r`/build/include
# KRNLINCL    = /usr/src/linux/include

I hope now it't better so understand what I want to do. ;-)


glDesigner - Interactive OpenGL Tutorial

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]