From 21488f3a3199336f8ff9b055626bb008a321cf4b Mon Sep 17 00:00:00 2001 From: belliash Date: Sun, 8 Jan 2012 12:09:21 +0100 Subject: [PATCH] add new library --- libraries/repositories | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 libraries/repositories diff --git a/libraries/repositories b/libraries/repositories new file mode 100644 index 0000000..b107a05 --- /dev/null +++ b/libraries/repositories @@ -0,0 +1,19 @@ +#!/bin/bash +# Copyright 2010-2012, Asio Software Technologies +# Distributed under the terms of the GNU General Public License v3 + + +#------------------------------------------------------------------------------- +# Downloads or updates specified RSYNC repository +# Parameters: %dest_directory% %address% +#------------------------------------------------------------------------------- +function checkoutRsync() { + DIRECTORY="${1}" + ADDRESS="${2}" + run "rsync --compress --delete --delete-after --devices --force --links \ + --partial --perms --recursive --safe-links --stats --times \ + --timeout=${FETCHTIMEOUT} --whole-file --exclude=/.git --exclude=CVS \ + --exclude=/distfiles --exclude=/local --exclude=/metadata/cache \ + --exclude=/packages ${ADDRESS} ${DIRECTORY}" || return 1 + return 0 +}