From f06bc1fd9e6518cfb623165a390485283b73dcdf Mon Sep 17 00:00:00 2001 From: Joe Hunkeler Date: Fri, 2 Oct 2015 16:01:23 -0400 Subject: Initial commit --- scripts/cbc_repo_copy | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 scripts/cbc_repo_copy (limited to 'scripts/cbc_repo_copy') 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 . -- cgit