#! /bin/bash 
# Last edited on 2012-01-10 16:02:21 by stolfilocal

# Fetch non-derived program files from manaus.ic.unicamp.br to the HP laptop.

source ${HOME}/lib/rsync-preamble.sh
dir="programs/c"

cd ${HOME}/${dir}/. || ( echo "cannot cd to ${dir}"  1>&2; exit 1 )

rsync -avzu \
  --exclude='*-out-*' \
  --exclude='*.a' \
  --exclude='*.eps' \
  --exclude='*.ho' \
  --exclude='*.log' \
  --exclude='*.o' \
  --exclude='*.ot' \
  --exclude='*.ps' \
  --exclude='*.tar' \
  --exclude='*.tar.gz' \
  --exclude='*.tgz' \
  --exclude='*~' \
  --exclude='.[a-zA-Z]*' \
  --exclude=00-TARFILES \
  --exclude=COURSES \
  --exclude=Deps.make \
  --exclude=JUNK/debug \
  --exclude=MODPKG \
  --exclude=OLD \
  --exclude=OUT \
  --exclude=SAVE \
  --exclude=THESES \
  --exclude=log \
  --exclude=logs \
  --exclude=old \
  --exclude=ot \
  --exclude=out \
  --exclude-from=binaries-to-exclude.dir \
  --safe-links \
  "${extraops[@]}" \
  stolfi@manaus.ic.unicamp.br:${dir}/ ./
