#! /bin/bash 
# Last edited on 2024-12-30 15:37:45 by stolfi

# Store non-derived program files from baikal to manaus.ic.unicamp.br.

source ${HOME}/lib/rsync-preamble.sh
if [[ $# -gt 0 ]]; then echo "** spurious arguments" 1>&2 ; exit 1; fi
dir="programs/c"

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

rsync -azvu \
  --exclude='*-old' \
  --exclude='*-out-*' \
  --exclude='*.a' \
  --exclude='*.eps' \
  --exclude='*.ho' \
  --exclude='*.log' \
  --exclude='*.o' \
  --exclude='*.pdf' \
  --exclude='*.ps' \
  --exclude='*.tar' \
  --exclude='*.tar.gz' \
  --exclude='*.tgz' \
  --exclude='*~' \
  --exclude='-ot-*' \
  --exclude='.[a-zA-Z]*' \
  --exclude='out-*' \
  --exclude='out_*' \
  --exclude='.gdbinit' \
  --exclude=00-TARFILES \
  --exclude=COURSES \
  --exclude=Deps.make \
  --exclude=extract-ho-deps \
  --exclude=JUNK \
  --exclude=OLD \
  --exclude=OUT \
  --exclude=SAVE \
  --exclude=gmon.out \
  --exclude=log \
  --exclude=logs \
  --exclude=old \
  --exclude=ot \
  --exclude=out \
  --exclude='snap-*' \
  --exclude='*-snapshot' \
  --exclude-from=binaries.dir \
  --safe-links \
  --backup \
  --backup-dir=/home/staff/stolfi/programs/c.`yyyy-mm-dd-hhmmss` \
  "${extraops[@]}" \
  `cat rsync-items-to-manaus.dir` \
  stolfi@manaus.ic.unicamp.br:${dir}/
  
  
  
