diff options
author | Joe Hunkeler <jhunkeler@gmail.com> | 2015-10-02 16:01:23 -0400 |
---|---|---|
committer | Joe Hunkeler <jhunkeler@gmail.com> | 2015-10-02 16:01:23 -0400 |
commit | f06bc1fd9e6518cfb623165a390485283b73dcdf (patch) | |
tree | 078b614f6c5cdb9799013549ae19ac5ce6eef98a /scripts/cbc_repo_copy | |
parent | d724953ee21bae030124513785977d1babc68e73 (diff) | |
download | cbc-f06bc1fd9e6518cfb623165a390485283b73dcdf.tar.gz |
Initial commit
Diffstat (limited to 'scripts/cbc_repo_copy')
-rwxr-xr-x | scripts/cbc_repo_copy | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/scripts/cbc_repo_copy b/scripts/cbc_repo_copy new file mode 100755 index 0000000..ff036ed --- /dev/null +++ b/scripts/cbc_repo_copy @@ -0,0 +1,16 @@ +#!/bin/bash +EXEC_PATH=$(dirname "${BASH_SOURCE[0]}") +source "$EXEC_PATH/cbc_functions.inc" + +get_os_info +REPO="$(get_conda_repo)" +REPO_NEW="$OS-$ARCH" + +if [ -d "$REPO_NEW" ]; then + rm -rf "$REPO_NEW" +fi + +mkdir -p $REPO_NEW +rsync -aH --progress "$REPO"/ "$REPO_NEW" +cd "$REPO_NEW" +conda index . |