projects
/
invirt/packages/invirt-dev.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
build source packages in a chroot too
[invirt/packages/invirt-dev.git]
/
invirt-configure-git-hooks
diff --git
a/invirt-configure-git-hooks
b/invirt-configure-git-hooks
index
bed41b5
..
d84c1d3
100755
(executable)
--- a/
invirt-configure-git-hooks
+++ b/
invirt-configure-git-hooks
@@
-4,7
+4,7
@@
set -e
set -u
link_to() {
set -u
link_to() {
- rm -rf "$1"
+ rm -r "$1"
ln -s "$2" "$1"
}
ln -s "$2" "$1"
}
@@
-15,7
+15,7
@@
link_to "$package_base/packages.git/hooks" "$hook_base/super"
for pkg in "$package_base"/*/*.git; do
case "$pkg" in
for pkg in "$package_base"/*/*.git; do
case "$pkg" in
- "$package_base/packages/*.git") link_to "$pkg/hooks" "$hook_base/sub" ;;
+ "$package_base"/packages/*.git) link_to "$pkg/hooks" "$hook_base/sub" ;;
*) link_to "$pkg/hooks" "$hook_base/other" ;;
esac
done
*) link_to "$pkg/hooks" "$hook_base/other" ;;
esac
done