From d7f0e266ba20a48e32e55398f2fa15f08a820d82 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Thu, 24 Jul 2008 09:29:50 +0200 Subject: [PATCH] add script to temporarily publish files Signed-off-by: Nico Schottelius --- release_tmp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 release_tmp diff --git a/release_tmp b/release_tmp new file mode 100755 index 0000000..548b8ca --- /dev/null +++ b/release_tmp @@ -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}"