From 25500ceb5032cb227036696e25b21e33e9494d61 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Sat, 20 Feb 2010 10:16:58 +0200 Subject: First commit --- README | 3 +++ build_rsync.sh | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 README create mode 100755 build_rsync.sh diff --git a/README b/README new file mode 100644 index 0000000..42636cc --- /dev/null +++ b/README @@ -0,0 +1,3 @@ +## Welcome to the Mac ToolKit ## +A collection of system administration and diagnostic tools for OS X + diff --git a/build_rsync.sh b/build_rsync.sh new file mode 100755 index 0000000..5f28dab --- /dev/null +++ b/build_rsync.sh @@ -0,0 +1,38 @@ +#!/usr/bin/env bash +# build_rsync.sh +# @author Filipp Lepalaan +# Build the most recent version of rsync +# with necessary patches. +# All thanks to Mike Bombich +# http://www.bombich.com/mactips/rsync.html + +USAGE="$(basename $0) rsync_version" +BACK=$PWD + +if [[ -z $1 ]]; then + echo $USAGE 2>&1 + exit 1 +fi + +RSYNC_VERSION=$1 +mkdir /tmp/build_rsync > /dev/null 2>&1 +cd /tmp/build_rsync + +echo "Downloading rsync..." +curl --progress -O http://rsync.samba.org/ftp/rsync/rsync-${RSYNC_VERSION}.tar.gz > /dev/null 2>&1 +curl --progress -O http://rsync.samba.org/ftp/rsync/rsync-patches-${RSYNC_VERSION}.tar.gz > /dev/null 2>&1 + +echo "Extracting rsync..." +tar -zxvf rsync-${RSYNC_VERSION}.tar.gz +tar -zxvf rsync-patches-${RSYNC_VERSION}.tar.gz +cd rsync-${RSYNC_VERSION} + +echo "Building rsync..." +patch -p1