Initial commit

This commit is contained in:
ariane
2021-03-18 15:42:28 +00:00
committed by root
commit e53cb04f1a
973 changed files with 23055 additions and 0 deletions

17
etckeeper/commit.d/10vcs-test Executable file
View File

@@ -0,0 +1,17 @@
#!/bin/sh
set -e
not_enabled_warning() {
echo "etckeeper warning: etckeeper is not yet enabled for $(pwd)" >&2
echo "etckeeper warning: run etckeeper init to enable it" >&2
}
if [ "$VCS" = git ] && [ ! -d .git ]; then
not_enabled_warning
elif [ "$VCS" = hg ] && [ ! -d .hg ]; then
not_enabled_warning
elif [ "$VCS" = bzr ] && [ ! -d .bzr ]; then
not_enabled_warning
elif [ "$VCS" = darcs ] && [ ! -d _darcs ]; then
not_enabled_warning
fi