Rechercher une page de manuel
svnauthcheck
Langue: en
Version: November, 2005 (mandriva - 01/05/08)
Section: 1 (Commandes utilisateur)
NAME
svnauthcheck - checks the syntax of a subversion authorization fileSYNOPSIS
svnauthcheck [OPTIONS] [authfile]DESCRIPTION
svnauthcheck checks the syntax of a subversion authorization file. It should be used when the file is checked in the repository itself: before a commit the server could check if an invalid file is being stored.OPTIONS
- -a, --apache=htaccess
- generates an apache-style permission file to be used with ViewCV
- -h, --help
- this help message
- -h
- help
- -s, --subtree=subtree
- the svnauth file is partial and is valid only for the given subtree
- -t, --template=template
- Apache authentication template to be used with -a
- -T, --trac=path
- the path of the trac project dir
- -u, --user=user
- specifies a user that should have write access to the top directory
- -v, --verbose
- verbose
- -V, --version
- prints the version of the program
SEE ALSO
svn(1)EXIT STATUS
svnauthcheck returns a zero exist status if it finds no error in the supplied file.USAGE SCENARIO
To allow the users of a repository to manage the access and authorization to the repository without the intervention of the server administrator we store the svnaccess file into the repository itself.This program can be then included in a pre-commit script to check for the file validity:
REPOS="$1" TXN="$2" SVNLOOK=/usr/bin/svnlook if $SVNLOOK cat -t "$TXN" "$REPOS" "svnaccess" | /usr/local/bin/svnauthcheck ; then exit 0 else exit 1 fi
The file is then copied to right location with a post-commit hook:
REPOS="$1" REV="$2" /usr/bin/svn cat file:///DIR1/svnaccess > /DIR2/svnaccess
BUGS
Please report bugs to: Matteo Corti (matteo.corti (at) id.ethz.ch)AUTHOR
Matteo Corti (matteo.corti (at) id.ethz.ch)Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre