#!/bin/sh
#
# The Geek's File uploader script
#
# Change to your ssh server information
SSHSERVER=username@servercom

# Change this to the base path of the installation on your remote server.
# For instance, if your WordPress or other application is installed in 
# /var/www/remote/directory/, then you should add that path here
RDIR=/var/www/remote/basepath/here

# Change this to the base path of your application install on your local
# machine. For instance, if your application is installed in /var/www
# then you should be fine. Just remember to escape all / with a \ as shown.
LDIR='\/var\/www'

scp $1 $SSHSERVER:$RDIR`pwd|sed "s/${LDIR}//"`/`echo $1|sed 's/.*\///'`
