Add deployment script
This commit is contained in:
parent
8ff631b29d
commit
fa6fd7a1b7
16
deploy.sh
Executable file
16
deploy.sh
Executable file
@ -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
|
||||||
Loading…
x
Reference in New Issue
Block a user