aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmitai Schlair <schmonz@magnetic-babysitter.(none)>2009-08-22 02:05:59 -0400
committerAmitai Schlair <schmonz@magnetic-babysitter.(none)>2009-08-22 02:05:59 -0400
commit8f15311597c257eca37c1f20769b80ef8f6c82c0 (patch)
tree427200b521e078d79d7c91579dd68f099f4bf98c
parent524de4db2639d37aa7049de4363c5d482cd34a0e (diff)
downloadikiwiki-8f15311597c257eca37c1f20769b80ef8f6c82c0.tar
ikiwiki-8f15311597c257eca37c1f20769b80ef8f6c82c0.tar.gz
No more wrapper wrapper.
-rwxr-xr-xikiwiki-makerepo28
1 files changed, 1 insertions, 27 deletions
diff --git a/ikiwiki-makerepo b/ikiwiki-makerepo
index bf33a3a80..aca8da153 100755
--- a/ikiwiki-makerepo
+++ b/ikiwiki-makerepo
@@ -45,38 +45,12 @@ cvs)
exit 1
fi
cvs -Q -d "$repository" init
- cat > "$repository/CVSROOT/post-commit-wrapper" <<EOF
-#!/bin/sh
-
-IKIWIKI_POST_COMMIT_HOOK="$repository/CVSROOT/post-commit"
-
-exists_ikiwiki_post_commit_hook() {
- [ -x \$IKIWIKI_POST_COMMIT_HOOK ];
-}
-
-called_with_exactly_one_dir() {
- echo "\$@" | grep 'New directory' >/dev/null 2>&1
-}
-
-main() {
- exists_ikiwiki_post_commit_hook || exit 0
- called_with_exactly_one_dir "\$@" && exit 0
- # Return from commit and relinquish write lock. ikiwiki post-commit
- # wants to "cvs update", which wants to take a read lock.
- \$IKIWIKI_POST_COMMIT_HOOK &
- return 0
-}
-
-main "\$@"
-exit \$?
-EOF
- chmod +x "$repository/CVSROOT/post-commit-wrapper"
cd "$srcdir"/..
cvs -Q -d "$repository" get -P CVSROOT
cd CVSROOT
echo .ikiwiki >> cvsignore
cvs -Q add cvsignore
- echo "^ikiwiki $repository/CVSROOT/post-commit-wrapper %{sVv}" >> loginfo
+ echo "^ikiwiki $repository/CVSROOT/post-commit %{sVv} &" >> loginfo
cvs -Q commit -m "ikiwiki-makerepo setup" cvsignore loginfo
cd ..
rm -rf CVSROOT