add script to release stuff to the eth/free server
Signed-off-by: Nico Schottelius <nico@ikn.ethz.ch>
This commit is contained in:
parent
f144f848cc
commit
832f876c9b
1 changed files with 15 additions and 0 deletions
15
eth_release.sh
Executable file
15
eth_release.sh
Executable file
|
@ -0,0 +1,15 @@
|
||||||
|
#!/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}"
|
Loading…
Reference in a new issue