From fa6fd7a1b7f889c286855e5dcdf2b3f9da3f6522 Mon Sep 17 00:00:00 2001 From: Florian Knoch Date: Sat, 26 Oct 2019 20:48:21 +0200 Subject: [PATCH] Add deployment script --- deploy.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 deploy.sh diff --git a/deploy.sh b/deploy.sh new file mode 100755 index 0000000..46d528c --- /dev/null +++ b/deploy.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +dirname=latex-wochenende-$(date +"%Y%m%d%H%M%S") + +echo "Creating zip file …" +mkdir $dirname +for i in css images index.html js lib sections; do + cp -r $i $dirname/$i +done; +(zip -r $dirname.zip $dirname) 1> /dev/null +rm -rf $dirname + +echo -n "Enter scp destination: " +read destination +scp $dirname.zip $destination +rm $dirname.zip \ No newline at end of file