#!/bin/sh # set -x # $Id$ rsync="rsync -q" basepath=~/tmp-easyurpmi/ wwwpath=~/www/ cd $basepath || exit 1 cvs -q update -d -C if [ -n "`find lists/ ! -name log.date -newer lists/log.date`" ]; then echo -e "// \$Id\$\n:lastchange=date:`LC_ALL=C date "+%A %m/%d/%Y %H:%M:%S %Z"`" > lists/log.date cvs commit -m "Auto update" lists/log.date $rsync -a --exclude CVS/ --exclude ".*" --delete --delete-after $basepath/lists/ $wwwpath/mirror.list/ fi