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
26 if [ ! -z "$BZR_COMMIT_OPTIONS" ]; then
27 export BZR_COMMIT_OPTIONS
30 if [ ! -z "$HIGHLEVEL_PACKAGE_MANAGER" ]; then
31 export HIGHLEVEL_PACKAGE_MANAGER
33 if [ ! -z "$LOWLEVEL_PACKAGE_MANAGER" ]; then
34 export LOWLEVEL_PACKAGE_MANAGER
44 if [ "$command" = "post-apt" ]; then
46 elif [ "$command" = "pre-apt" ]; then
50 if [ ! -d "/etc/etckeeper/$command.d" ]; then
51 echo "etckeeper: /etc/etckeeper/$command.d does not exist" >&2
55 if [ "x$1" = "x-d" ]; then
69 print join "\n", grep { ! -d $_ && -x $_ }
70 grep /^\Q$dir\/\E[-a-zA-Z0-9]+$/,
75 for script in $(lsscripts "/etc/etckeeper/$command.d"); do