#!/bin/sh # Merge configuration files from GARstow's pristine copy into the directory the # system is actually using. # Usage: merge-dir SOURCE DEST # FIXME: this gets it wrong for DESTDIR, and should do the same for # bootdir/rootlibdir; pass name as third arg? # FIXME: this should allow configuration for different subdirs too; # e.g. /etc/init.d and /etc/bash_completion* should be overwritten opts="-a" case "$2" in /|/boot|/lib) ;; *) opts="$opts --ignore-existing" ;; esac exec rsync $opts "$1/" "$2"