#!/bin/bash # This script copies all source code files from a geniusweb project # into the local directories. # The local copy is needed so that we can add the code to toe source path # of the projecct. # This script must be run from the geniuswebtranslator root directory. # The geniusweb project must be checked out at the prpoer version # and the source directory must have been set properly # Set this to the actual name you checked out GeniusWeb. GENIUSWEB_SOURCE_DIR="/documents/Utilities/GeniusWeb/" rm -rf geniusweb/* copyPackage() { src=${GENIUSWEB_SOURCE_DIR}'/'${1}'/' rsync --recursive -v $src'src/' geniusweb/src/ } copyPackage "bidspace" copyPackage "boa" copyPackage "events" copyPackage "exampleparties/randomparty" copyPackage "exampleparties/timedependentparty" copyPackage "exampleparties/conceder" copyPackage "ip" copyPackage "issuevalue" copyPackage "opponentmodel" copyPackage "party" copyPackage "profile" copyPackage "profileconnection" copyPackage "timeline" copyPackage "protocol" copyPackage "references" copyPackage "voting"