# HG changeset patch # User František Kučera # Date 1555693006 -7200 # Node ID 1539711d86573f58bf1bb44170452eb325953054 # Parent 1c7536a0beda5d73e76960339966af699159adcf shortcuts for common operations diff -r 1c7536a0beda -r 1539711d8657 bin/vcs-backup-clone-private-git --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bin/vcs-backup-clone-private-git Fri Apr 19 18:56:46 2019 +0200 @@ -0,0 +1,1 @@ +../vcs-backup.sh \ No newline at end of file diff -r 1c7536a0beda -r 1539711d8657 bin/vcs-backup-clone-private-hg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bin/vcs-backup-clone-private-hg Fri Apr 19 18:56:46 2019 +0200 @@ -0,0 +1,1 @@ +../vcs-backup.sh \ No newline at end of file diff -r 1c7536a0beda -r 1539711d8657 bin/vcs-backup-clone-public-git --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bin/vcs-backup-clone-public-git Fri Apr 19 18:56:46 2019 +0200 @@ -0,0 +1,1 @@ +../vcs-backup.sh \ No newline at end of file diff -r 1c7536a0beda -r 1539711d8657 bin/vcs-backup-clone-public-hg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bin/vcs-backup-clone-public-hg Fri Apr 19 18:56:46 2019 +0200 @@ -0,0 +1,1 @@ +../vcs-backup.sh \ No newline at end of file diff -r 1c7536a0beda -r 1539711d8657 vcs-backup.sh --- a/vcs-backup.sh Fri Apr 19 17:52:37 2019 +0200 +++ b/vcs-backup.sh Fri Apr 19 18:56:46 2019 +0200 @@ -155,6 +155,10 @@ PUBLIC_FUNCTION_PREFIX="vcs_backup_public_"; if type -t "$PUBLIC_FUNCTION_PREFIX$1" > /dev/null; then "$PUBLIC_FUNCTION_PREFIX${@:1}"; +elif [[ $(basename $0) == "vcs-backup-clone-private-hg" ]]; then "${PUBLIC_FUNCTION_PREFIX}clientSubmitBackupRequest" hg "$1" private clone; +elif [[ $(basename $0) == "vcs-backup-clone-private-git" ]]; then "${PUBLIC_FUNCTION_PREFIX}clientSubmitBackupRequest" git "$1" private clone; +elif [[ $(basename $0) == "vcs-backup-clone-public-hg" ]]; then "${PUBLIC_FUNCTION_PREFIX}clientSubmitBackupRequest" hg "$1" public clone; +elif [[ $(basename $0) == "vcs-backup-clone-public-git" ]]; then "${PUBLIC_FUNCTION_PREFIX}clientSubmitBackupRequest" git "$1" public clone; else echo "Unsupported sub-command: $1" >&2 echo "Available sub-commands:" >&2