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
.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:
set -e
if [ ! -e .git ]; then
git-init
+ echo "$(hostname) /etc repository" > .git/description
fi
#!/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