|
@@ -18,23 +18,27 @@ todo=""
|
|
|
# Echo help information
|
|
|
usage()
|
|
|
{
|
|
|
- echo "Usage: "`basename $0`" [options] <command> <parameters>"
|
|
|
- echo "Tool for VCS repository administration. Now supports" \
|
|
|
- "Subversion only."
|
|
|
- printf "Options:\n"
|
|
|
- printf "\t-h, --help\n"
|
|
|
- printf "\t\tPrint help message.\n"
|
|
|
- printf "Commands:\n"
|
|
|
- printf "\tadd <repository1> [repository2] ...\n"
|
|
|
- printf "\t\tCreate new repository.\n"
|
|
|
- printf "\tdel <repository1> [repository2] ...\n"
|
|
|
- printf "\t\tDelete existing repository.\n"
|
|
|
- printf "\tfixmod <repository1> [repository2] ...\n"
|
|
|
- printf "\t\tFix access rights for repository.\n"
|
|
|
- printf "\tuseradd <repository> <r/w/rw> <user1> [user2] ...\n"
|
|
|
- printf "\t\tSet access rights for user(s) to repository.\n"
|
|
|
- printf "\tuserdel <repository> <r/w/rw> <user1> [user2] ...\n"
|
|
|
- printf "\t\tRemove access rights for user(s) to repository.\n"
|
|
|
+ cat <<EOF
|
|
|
+Usage: $0 [options] <command> <parameters>
|
|
|
+Tool for VCS repository administration. Now supports
|
|
|
+Subversion only.
|
|
|
+
|
|
|
+Options:
|
|
|
+ -h, --help
|
|
|
+ Print help message.
|
|
|
+
|
|
|
+Commands:
|
|
|
+ add <repository1> [repository2] ...
|
|
|
+ Create new repository.
|
|
|
+ del <repository1> [repository2] ...
|
|
|
+ Delete existing repository.
|
|
|
+ fixmod <repository1> [repository2] ...
|
|
|
+ Fix access rights for repository.
|
|
|
+ useradd <repository> <r/w/rw> <user1> [user2] ...
|
|
|
+ Set access rights for user(s) to repository.
|
|
|
+ userdel <repository> <r/w/rw> <user1> [user2] ...
|
|
|
+ Remove access rights for user(s) to repository.
|
|
|
+EOF
|
|
|
}
|
|
|
|
|
|
group_add()
|