3 conf=/etc/etckeeper/etckeeper.conf
6 echo "usage: etckeeper command [-d directory]" >&2
14 if [ -z "$VCS" ]; then
15 echo "Please configure a VCS in $conf" >&2
20 if [ ! -z "$GIT_COMMIT_OPTIONS" ]; then
21 export GIT_COMMIT_OPTIONS
23 if [ ! -z "$HG_COMMIT_OPTIONS" ]; then
24 export HG_COMMIT_OPTIONS
27 if [ ! -z "$HIGHLEVEL_PACKAGE_MANAGER" ]; then
28 export HIGHLEVEL_PACKAGE_MANAGER
30 if [ ! -z "$LOWLEVEL_PACKAGE_MANAGER" ]; then
31 export LOWLEVEL_PACKAGE_MANAGER
41 if [ "$command" = "post-apt" ]; then
43 elif [ "$command" = "pre-apt" ]; then
47 if [ ! -d "/etc/etckeeper/$command.d" ]; then
48 echo "etckeeper: /etc/etckeeper/$command.d does not exist" >&2
52 if [ "x$1" = "x-d" ]; then
66 print join "\n", grep { ! -d $_ && -x $_ }
67 grep /^\Q$dir\/\E[-a-zA-Z0-9]+$/,
72 for script in $(lsscripts "/etc/etckeeper/$command.d"); do