mirror of
https://github.com/tuna/tunasync-scripts.git
synced 2025-04-20 12:42:50 +00:00
script to sync bioconductor
This commit is contained in:
parent
398af382f1
commit
324b680657
30
bioconductor.sh
Executable file
30
bioconductor.sh
Executable file
@ -0,0 +1,30 @@
|
||||
#!/bin/bash
|
||||
# requires: wget, rsync
|
||||
#
|
||||
|
||||
set -e
|
||||
set -o pipefail
|
||||
|
||||
UPSTREAM=${TUNASYNC_UPSTREAM_URL:-"rsync://master.bioconductor.org"}
|
||||
VERSIONS=("3.5")
|
||||
RELEASE_VERSION="3.5"
|
||||
|
||||
RSYNC_OPTS="-aHvh --no-o --no-g --stats --exclude .~tmp~/ --delete --delete-after --delay-updates --safe-links --timeout=120 --contimeout=120"
|
||||
|
||||
USE_IPV6=${USE_IPV6:-"0"}
|
||||
if [[ $USE_IPV6 == "1" ]]; then
|
||||
RSYNC_OPTS="-6 ${RSYNC_OPTS}"
|
||||
fi
|
||||
|
||||
mkdir -p ${TUNASYNC_WORKING_DIR}/packages
|
||||
|
||||
for version in ${VERSIONS[@]}; do
|
||||
upstream=${UPSTREAM}:${version}
|
||||
dest=${TUNASYNC_WORKING_DIR}/packages/${version}
|
||||
|
||||
[ ! -d "$dest" ] && mkdir -p "$dest"
|
||||
|
||||
rsync ${RSYNC_OPTS} "$upstream" "$dest"
|
||||
done
|
||||
|
||||
ln -sfT ${TUNASYNC_WORKING_DIR}/packages/${RELEASE_VERSION} ${TUNASYNC_WORKING_DIR}/packages/release
|
Loading…
x
Reference in New Issue
Block a user