add script to temporarily publish files

Signed-off-by: Nico Schottelius <nico@denkbrett.schottelius.org>
This commit is contained in:
Nico Schottelius 2008-07-24 09:29:50 +02:00
parent 6687a642a4
commit d7f0e266ba
1 changed files with 15 additions and 0 deletions

15
release_tmp Executable file
View File

@ -0,0 +1,15 @@
#!/bin/sh
file=$1
host=home.schottelius.org
dir=public_html/temp/
url="http://home.schottelius.org/~nico/temp"
[ -z "$file" ] && exit 1
bfile="$(basename "$file")"
scp "$file" "${host}:$dir"
ssh $host "chmod a+r $dir/$bfile"
echo "Pre-released ${url}/${bfile}"