#!/bin/bash function renderHelp { echo $0 echo "Version: 0.1" echo "Usage: $0 dir_name" echo } if [ "$1" == "" ] ; then renderHelp exit; fi SVN_BASE_URL="http://svn.fr-wd.com/Bell_Lumber" SOURCE_PROJECT="bellpole.com" dir=$1 source="$SVN_BASE_URL/$SOURCE_PROJECT/trunk/site/$dir" destinationProjects="alamcowood.com bellstructural.com belltimber.com" echo echo "Dir: $dir"; echo "Source URL: $source"; echo echo "$destinationProjects" | \ while read project; do destination="./$project/trunk/site/$dir" #echo $source #echo $destination svn export $source $destination --force done