aboutsummaryrefslogtreecommitdiff
path: root/slides
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2018-07-08 17:46:05 -0300
committerEuAndreh <eu@euandre.org>2018-07-08 17:46:05 -0300
commit40ea66381f0d005dadd430a9e4128e561cd1d601 (patch)
treea036ad4e374976623dc0291d4cdd25b9bf81b923 /slides
parentInitial commit (diff)
downloadeuandre.org-40ea66381f0d005dadd430a9e4128e561cd1d601.tar.gz
euandre.org-40ea66381f0d005dadd430a9e4128e561cd1d601.tar.xz
Add slides/new.sh for bootstrapping new reveal.js presentations
Diffstat (limited to '')
-rwxr-xr-xslides/new.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/slides/new.sh b/slides/new.sh
new file mode 100755
index 0000000..f985ca6
--- /dev/null
+++ b/slides/new.sh
@@ -0,0 +1,22 @@
+#!/usr/bin/env bash
+set -eo pipefail
+
+SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
+cd $SCRIPT_DIR
+
+function update-reveal-js(){
+ pushd reveal.js/
+ git pull
+ git --work-tree="../$1/reveal.js" checkout HEAD -- .
+ popd
+}
+
+[ -n "$1" ] || {
+ echo "Missing folder name as argument."
+ exit 1
+}
+
+outdir="$1"
+mkdir "$outdir"
+mkdir "$outdir/reveal.js"
+update-reveal-js $outdir