| #!/bin/bash |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| function svn_getOptions { |
| |
| |
| local ARGSS="h,q" |
| |
| |
| local ARGSL="help,quiet,sync-changes,update,commit,is-versioned,get-status,mkdir,copy,delete" |
| |
| |
| cli_parseArguments |
| |
| |
| eval set -- "$ARGUMENTS" |
| |
| |
| while true; do |
| |
| case "$1" in |
| |
| -h | --help ) |
| cli_runFnEnvironment help --read --format="texinfo" trunk/Scripts/Bash/Functions/Svn |
| shift 1 |
| exit |
| ;; |
| |
| -q | --quiet ) |
| FLAG_QUIET="true" |
| shift 1 |
| ;; |
| |
| --sync-changes ) |
| ACTIONNAMS="${ACTIONNAMS} svn_syncroRepoChanges" |
| shift 1 |
| ;; |
| |
| --commit ) |
| ACTIONNAMS="${ACTIONNAMS} svn_commitRepoChanges" |
| shift 1 |
| ;; |
| |
| --update ) |
| ACTIONNAMS="${ACTIONNAMS} svn_updateRepoChanges" |
| shift 1 |
| ;; |
| |
| --is-versioned ) |
| ACTIONNAMS="${ACTIONNAMS} svn_isVersioned" |
| shift 1 |
| ;; |
| |
| --get-status ) |
| ACTIONNAMS="${ACTIONNAMS} svn_getRepoStatus" |
| shift 1 |
| ;; |
| |
| --copy ) |
| ACTIONNAMS="${ACTIONNAMS} svn_copyRepoFile" |
| shift 1 |
| ;; |
| |
| --mkdir ) |
| ACTIONNAMS="${ACTIONNAMS} svn_mkRepoDirectory" |
| shift 1 |
| ;; |
| |
| --delete ) |
| ACTIONNAMS="${ACTIONNAMS} svn_deleteRepoFile" |
| shift 1 |
| ;; |
| |
| -- ) |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| shift 1 |
| break |
| ;; |
| esac |
| done |
| |
| |
| cli_parseArgumentsReDef "$@" |
| |
| } |