View previous topic :: View next topic |
Author |
Message |
mihochan Apprentice
Joined: 16 Apr 2002 Posts: 296 Location: Melbourne again
|
Posted: Thu May 22, 2003 6:20 am Post subject: Suggested improvements for etc-update |
|
|
I reckon the following would be worthwhile improvement for etc-update
That etc-update be configurable to take some graphical program like KDE's kompare as the 'diff' utility.
I for one can't really read the diff output readily.
Tom _________________ In the long run we are all dead - Keynes |
|
Back to top |
|
|
djn n00b
Joined: 18 Apr 2003 Posts: 4 Location: Aarhus, Denmark
|
Posted: Thu May 22, 2003 9:24 am Post subject: Re: Suggested improvements for etc-update |
|
|
mihochan wrote: |
That etc-update be configurable to take some graphical program like KDE's kompare as the 'diff' utility.
|
The major point here is configurable. I believe it to be VERY unwise to have etc-update depend on any X11 related application. But I find diff output to be rather readable... At least for this use.
/Daniel |
|
Back to top |
|
|
asimon l33t
Joined: 27 Jun 2002 Posts: 979 Location: Germany, Old Europe
|
Posted: Thu May 22, 2003 11:29 am Post subject: |
|
|
You can already configure what diff program etc-update uses:
From my /etc/etc-update.conf:
Code: |
# vim-users: you CAN use vimdiff for diff_command. (see NOTE_1)
#diff_command="diff -uN %file1 %file2"
diff_command="colordiff -uN %file1 %file2"
using_editor=0
#diff_command="vim -d %file1 %file2"
#using_editor=1
|
I just tested it with
Code: |
diff_command="kompare %file1 %file2"
|
and it called kompare (this is the kde utility you mentioned) from etc-update, although I got a lot of debugging messages from KDE which where annoying, so something like
"kompare %file1 %file2 &>/dev/null" would probably be better. But it seems to work already.
Cheers,
Andreas |
|
Back to top |
|
|
mihochan Apprentice
Joined: 16 Apr 2002 Posts: 296 Location: Melbourne again
|
Posted: Fri May 23, 2003 5:16 am Post subject: |
|
|
Yeah,
you're right. things are a bit slow and tedious with 'kompare'.
i ended up writing a script to bring everything up to date.
tom _________________ In the long run we are all dead - Keynes |
|
Back to top |
|
|
grant.mcdorman Apprentice
Joined: 29 Jan 2003 Posts: 295 Location: Toronto, ON, Canada
|
Posted: Fri May 23, 2003 7:38 pm Post subject: graphical comparision |
|
|
I use something called xxdiff, personally - it's worlds better than kompare. I have a little script invoked by etc-update which tries to contact the X server, and uses xxdiff if that works; otherwise it falls back to the original mechanism.
Regretably, I can't post it since I'm at work right now. |
|
Back to top |
|
|
|