Loads of files need updating

By automatthias

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

One Response to “Loads of files need updating”

  1. Anonymous Says:

    You might just use the command etc-update …And pick -3 or -5 as it suits you.

    –Archer

Leave a Reply