3 # add all installed config files to git
5 # GIT_DIR=/var/lib/zpm/confgit
8 if [ -z "$TARGET" ]; then
9 TARGET=/var/lib/zpm/confgit
13 if [ ! -d "$TARGET" ]; then
18 for pkgid in $(zpm list -I "$@"); do
19 zpm foreach-path -p $pkgid -F 'configuration = 1' | rsync --info=all0,backup1 --exclude=.git --files-from=- -drp / $TARGET
27 git diff --quiet && git diff --staged --quiet || git commit -m "update $pkgid configuration files"