From b42d7c03371d9f1dab89a8d7a3e5bb85e8774e14 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 5 Nov 2007 18:13:00 -0500 Subject: finishing touches etc --- Makefile | 2 ++ README | 1 + init.d/20git-init | 1 + pre-commit.d/10warn-empty-directory | 2 +- 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 75a329b..96f7fb8 100644 --- a/Makefile +++ b/Makefile @@ -14,3 +14,5 @@ install: ln -sf /usr/lib/etckeeper/$$file $(PREFIX)/etc/etckeeper/$$file; \ done; \ done + + install -m 0644 -D apt.conf $(PREFIX)/etc/apt/apt.conf.d/05etckeeper diff --git a/README b/README index 967ffea..6fb04d9 100644 --- a/README +++ b/README @@ -74,6 +74,7 @@ the right files, and none of the wrong files. And you can edit the .gitignore and so forth. Once you're ready: git commit -m "initial checkin" + git gc # pack git repo to save a lot of space After this first checkin, you can use regular git commands to check in further changes: diff --git a/init.d/20git-init b/init.d/20git-init index 7bf1c89..69867c4 100755 --- a/init.d/20git-init +++ b/init.d/20git-init @@ -2,4 +2,5 @@ set -e if [ ! -e .git ]; then git-init + echo "$(hostname) /etc repository" > .git/description fi diff --git a/pre-commit.d/10warn-empty-directory b/pre-commit.d/10warn-empty-directory index 3f6cdaa..ef70b72 100755 --- a/pre-commit.d/10warn-empty-directory +++ b/pre-commit.d/10warn-empty-directory @@ -1,6 +1,6 @@ #!/bin/sh set -e -empty=$(find -type f -empty | grep -v /.git/) || true +empty=$(find -type d -empty | grep -v /.git/) || true if [ -n "$empty" ]; then echo "etckeeper warning: empty directories, not tracked by git:" >&2 echo "$empty" >&2 -- cgit v1.2.3