diff options
author | EuAndreh <eu@euandre.org> | 2018-12-29 17:20:41 -0200 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2018-12-29 17:21:00 -0200 |
commit | 493a2f862e1e9d8d8d7e71cd6692055926661417 (patch) | |
tree | 0325e0459cceac72000f97ff50987b8925f3e9f0 /slides/new.sh | |
parent | Fix forwarding of arguments to sub-scripts. (diff) | |
download | euandre.org-493a2f862e1e9d8d8d7e71cd6692055926661417.tar.gz euandre.org-493a2f862e1e9d8d8d7e71cd6692055926661417.tar.xz |
Add website-slides as Perl subcommand.
Diffstat (limited to '')
-rwxr-xr-x | slides/new.sh | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/slides/new.sh b/slides/new.sh deleted file mode 100755 index b3d15dc..0000000 --- a/slides/new.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/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/ > /dev/null - git --work-tree="../$1/reveal.js" checkout HEAD -- . - git checkout $(cat "../$1/reveal.js/VERSION" &> /dev/null || printf ".") - git rev-parse HEAD > "../$1/VERSION" - popd > /dev/null -} - -[ -n "$1" ] || { - echo "Missing folder name as argument." - exit 1 -} - -outdir="$1" -mkdir -p "$outdir/reveal.js" -cp base.org "$outdir/index.org" -update-reveal-js $outdir |