summaryrefslogtreecommitdiff
path: root/uninit.d/50vcs-uninit
blob: c9896ed667cc06c5679ebdbbb254789a7a4f5cca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
set -e

if [ "$VCS" = git ]; then
	rm -rf .git .gitignore
elif [ "$VCS" = hg ]; then
	rm -rf .hg .hgignore
elif [ "$VCS" = bzr ]; then
	rm -rf .bzr .bzrignore
elif [ "$VCS" = darcs ]; then
	rm -rf _darcs .darcsignore
fi