shortcuts for common operations v_0
authorFrantišek Kučera <franta-hg@frantovo.cz>
Fri, 19 Apr 2019 18:56:46 +0200
branchv_0
changeset 41539711d8657
parent 3 1c7536a0beda
child 5 5e5d4c937739
shortcuts for common operations
bin/vcs-backup-clone-private-git
bin/vcs-backup-clone-private-hg
bin/vcs-backup-clone-public-git
bin/vcs-backup-clone-public-hg
vcs-backup.sh
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/bin/vcs-backup-clone-private-git	Fri Apr 19 18:56:46 2019 +0200
     1.3 @@ -0,0 +1,1 @@
     1.4 +../vcs-backup.sh
     1.5 \ No newline at end of file
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/bin/vcs-backup-clone-private-hg	Fri Apr 19 18:56:46 2019 +0200
     2.3 @@ -0,0 +1,1 @@
     2.4 +../vcs-backup.sh
     2.5 \ No newline at end of file
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/bin/vcs-backup-clone-public-git	Fri Apr 19 18:56:46 2019 +0200
     3.3 @@ -0,0 +1,1 @@
     3.4 +../vcs-backup.sh
     3.5 \ No newline at end of file
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/bin/vcs-backup-clone-public-hg	Fri Apr 19 18:56:46 2019 +0200
     4.3 @@ -0,0 +1,1 @@
     4.4 +../vcs-backup.sh
     4.5 \ No newline at end of file
     5.1 --- a/vcs-backup.sh	Fri Apr 19 17:52:37 2019 +0200
     5.2 +++ b/vcs-backup.sh	Fri Apr 19 18:56:46 2019 +0200
     5.3 @@ -155,6 +155,10 @@
     5.4  PUBLIC_FUNCTION_PREFIX="vcs_backup_public_";
     5.5  if type -t "$PUBLIC_FUNCTION_PREFIX$1" > /dev/null; then
     5.6  	"$PUBLIC_FUNCTION_PREFIX${@:1}";
     5.7 +elif [[ $(basename $0) == "vcs-backup-clone-private-hg"  ]]; then "${PUBLIC_FUNCTION_PREFIX}clientSubmitBackupRequest" hg  "$1" private clone;
     5.8 +elif [[ $(basename $0) == "vcs-backup-clone-private-git" ]]; then "${PUBLIC_FUNCTION_PREFIX}clientSubmitBackupRequest" git "$1" private clone;
     5.9 +elif [[ $(basename $0) == "vcs-backup-clone-public-hg"   ]]; then "${PUBLIC_FUNCTION_PREFIX}clientSubmitBackupRequest" hg  "$1" public  clone;
    5.10 +elif [[ $(basename $0) == "vcs-backup-clone-public-git"  ]]; then "${PUBLIC_FUNCTION_PREFIX}clientSubmitBackupRequest" git "$1" public  clone;
    5.11  else
    5.12  	echo "Unsupported sub-command: $1" >&2
    5.13  	echo "Available sub-commands:" >&2