blob: 1321eb926aea407ee2de42ed5a78fb0d61c079be (
about) (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/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"
cp base.org "$outdir/index.org"
update-reveal-js $outdir
|