diff options
Diffstat (limited to 'init.d')
-rwxr-xr-x | init.d/40vcs-init | 2 | ||||
-rwxr-xr-x | init.d/50vcs-ignore | 4 | ||||
-rwxr-xr-x | init.d/50vcs-perm | 2 | ||||
-rwxr-xr-x | init.d/70vcs-add | 4 |
4 files changed, 11 insertions, 1 deletions
diff --git a/init.d/40vcs-init b/init.d/40vcs-init index e2677bc..dec33a4 100755 --- a/init.d/40vcs-init +++ b/init.d/40vcs-init @@ -8,4 +8,6 @@ elif [ "$VCS" = hg ] && [ ! -e .hg ]; then hg init echo "[web]" > .hg/hgrc echo "description = $(hostname) /etc repository" >> .hg/hgrc +elif [ "$VCS" = bzr ] && [ ! -e .bzr ]; then + bzr init fi diff --git a/init.d/50vcs-ignore b/init.d/50vcs-ignore index c11a12e..43c245d 100755 --- a/init.d/50vcs-ignore +++ b/init.d/50vcs-ignore @@ -5,6 +5,8 @@ if [ "$VCS" = git ] && [ ! -e .gitignore ]; then file=.gitignore elif [ "$VCS" = hg ] && [ ! -e .hgignore ]; then file=.hgignore +elif [ "$VCS" = bzr ] && [ ! -e .bzrignore ]; then + file=.bzrignore fi if [ -z "$file" ] || [ -e "$file" ]; then @@ -24,7 +26,7 @@ ignore() { glob="$1" case "$VCS" in - git) + git|bzr) echo "$glob" >> $file ;; hg) diff --git a/init.d/50vcs-perm b/init.d/50vcs-perm index 9ffad92..f9a6b8c 100755 --- a/init.d/50vcs-perm +++ b/init.d/50vcs-perm @@ -5,4 +5,6 @@ if [ "$VCS" = git ]; then chmod 700 .git elif [ "$VCS" = hg ]; then chmod 700 .hg +elif [ "$VCS" = bzr ]; then + chmod 700 .bzr fi diff --git a/init.d/70vcs-add b/init.d/70vcs-add index 8cf60d0..e6ab3d1 100755 --- a/init.d/70vcs-add +++ b/init.d/70vcs-add @@ -9,4 +9,8 @@ elif [ "$VCS" = hg ]; then if ! hg add .; then echo "etckeeper warning: hg add failed" >&2 fi +elif [ "$VCS" = bzr ]; then + if ! bzr add .; then + echo "etckeeper warning: bzr add failed" >&2 + fi fi |