Archive for November 24th, 2005

Loads of files need updating

2005-11-24

Gentoo stuff again.

* IMPORTANT: 35 config files in /etc need updating.
 * IMPORTANT: 2 config files in /usr/lib/X11/xkb need updating.
 * IMPORTANT: 7 config files in /usr/share/texmf/dvips/config/ need updating.
 * Type emerge --help config to learn how to update config files.

Updating those files can be really annoying. I wrote a shell script that opens those configuration files in diff view and allows to easy merge changes. Of course if you know how to use vim in diff mode.

#!/bin/sh
for i in `find /etc -iname '._cfg????_*'`
do
        ORIG_FILE="`echo $i | sed -e 's/._cfg[0-9]{4}_//'`"
        vimdiff "$ORIG_FILE" "$i"
        read -p "Press enter" JUNK
done

Follow

Get every new post delivered to your Inbox.

Join 474 other followers