function web {
  if [ "$1" ]
  then
    cd /var/www/servers/$1.rtk0.net/pages
  else
    echo "Usage: web sitename"
  fi
}

function contrib {
  if [ "$1" ] && [ "$2" ]
  then
    cvs -d:pserver:anonymous@cvs.drupal.org:/cvs/drupal-contrib co -d$1 -r$2 contributions/modules/$1
  else
    echo "Usage: contrib modname branch"
  fi
}

function drop {
  if [ "$1" ]
  then
    cp $1 /var/www/servers/drop.rtk0.net/pages/
  else
    echo "Usage: drop filename"
  fi
}

function offload {
  if [ "$1" ]
  then
    mv $1 /var/www/servers/archive.rtk0.net/pages/offload/
  else
    echo "Usage: offload filename"
  fi
}


function wl {
  if [ "$1" ]
  then
    tail -F /var/multilog/$1/current | tai64nlocal
  else
    echo "Usage: wl service"
  fi
}

function log {
  local fname
  fname=/var/www/servers/overbeck.rtk0.net/pages/adminlog/entries/`date +%Y%m%d.txt`
  if [ ! -e $fname ]
  then
    echo "Log entries for `date '+%B %d, %Y'`" > $fname
  fi
  nano -w /var/www/servers/overbeck.rtk0.net/pages/adminlog/entries/`date +%Y%m%d.txt`
}

function flags {
  export CFLAGS="-I/usr/pkg/include -L/usr/pkg/lib"
  export LDFLAGS="-L/usr/pkg/lib"
  export CXXFLAGS="-I/usr/pkg/include -L/usr/pkg/lib"
  export CPPFLAGS="-I/usr/pkg/include"
}
