view web/upload.sh @ 1764:91ec4714b905

ignored multiple directories specified on commandline IMHO this was inconsistent - specifying one directory had completely different effect than specifying two or more directories. Moreover, it segfaulted. Now only one directory is allowed.
author nadvornik
date Thu, 01 Oct 2009 18:40:34 +0000
parents 08e1522af78e
children
line wrap: on
line source

#!/bin/sh

if [ "${PWD##*/}" != "web" ] ; then
  echo $0 must be called from directory \"web\"
  exit 1;
fi

# later we can include user manual 
# ln -sf ../doc

echo -n "SF username: "
read username

rsync -avP -C --copy-links --exclude "*.sh" --exclude "Makefile*" -e ssh ./ $username,geeqie@web.sourceforge.net:htdocs/