aboutsummaryrefslogtreecommitdiff
path: root/scripts/cbc_repo_copy
blob: 68a22a3411480e50b25369d82b7993fd5a0e9070 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/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
    mkdir -p "$REPO_NEW"
fi

rsync -aH --progress --exclude='repodata*' --exclude='.index.json' "$REPO"/ "$REPO_NEW"
cd "$REPO_NEW"
conda index .