From ef70e3d7e62671d0cadb2731e6965768f73ca290 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 3 Jan 2008 21:12:05 -0500 Subject: * Added configuration options for highlevel and lowlevel package managers in etckeeper.conf. * Only install apt hooks if apt is used. * Only add backup conffile exclusion to gitignore if dpkg is used. * Rename pre/post-apt.d to pre/post-install.d to allow the same directories to be used for other package managers. * Use the name of the highlevel package manager in commit messages. --- post-install.d/40git-rm | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 post-install.d/40git-rm (limited to 'post-install.d/40git-rm') diff --git a/post-install.d/40git-rm b/post-install.d/40git-rm new file mode 100755 index 0000000..680dac0 --- /dev/null +++ b/post-install.d/40git-rm @@ -0,0 +1,12 @@ +#!/bin/sh +set -e + +TAB=" " + +if [ -d .git ]; then + for file in $(git ls-files --deleted); do + if [ ! -d "$file" ]; then + git rm --quiet "$file" + fi + done +fi -- cgit v1.2.3