3 err() { echo "$*" 1>&2; exit 1; }
5 if [[ $# -eq 0 ]] ; then
7 Usage: $0 <files to post>
13 if [[ ! -e ${pkg} ]] ; then
15 */*) err "${pkg}: does not exist" ;;
17 pkg="/usr/portage/distfiles/${pkg}"
18 if [[ ! -e ${pkg} ]] ; then
19 err "${pkg}: does not exist"
28 ssh dev "cp -i ${p} public_html/dist/ && mv -i ${p} /space/distfiles-local/"