nsbin/eth_release.sh
Nico Schottelius 832f876c9b add script to release stuff to the eth/free server
Signed-off-by: Nico Schottelius <nico@ikn.ethz.ch>
2008-11-28 13:26:09 +01:00

15 lines
258 B
Bash
Executable file

#!/bin/sh
file=$1
host=free.ethz.ch
dir=public_html/temp/
url="http://people.inf.ethz.ch/~nicosc/temp"
[ -z "$file" ] && exit 1
bfile="$(basename "$file")"
scp "$file" "${host}:$dir"
ssh $host "chmod a+r $dir/$bfile"
echo "Pre-released ${url}/${bfile}"