<file_sep>#! /bin/sh

# make symlink of reveal.js
ln -s $revealJsPath$/css \$(pwd)/css
ln -s $revealJsPath$/js \$(pwd)/js
ln -s $revealJsPath$/lib \$(pwd)/lib
ln -s $revealJsPath$/plugin \$(pwd)/plugin
ln -s $revealJsPath$/node_modules \$(pwd)/node_modules
ln -s $revealJsPath$/Gruntfile.js \$(pwd)/Gruntfile.js
ln -s $revealJsPath$/package.json \$(pwd)/package.json


# make directories
mkdir code
mkdir image
mkdir graphviz

# add permission to scripts
chmod u+x \$(dirname \$0)/*
<file_sep>name=presentation
description=Create a presentation slide using reveal.js.
title=Title
author=Author
date=\\today
revealJsPath=
<file_sep>#! /bin/sh

find ./\$1 -type f
<file_sep>% $title$
% $author$
% $date$

# Title1
## Sub Section

<file_sep>#! /bin/sh

scriptDir=\$(dirname \$0)
srcDir=\$1
mainFile=\$2
target=\$3
pandocCmd=\$4
shift 4
pandocFlag=\$@

# join
# pre-compile
# compile
# post-compile
\${scriptDir}/join.scala \$srcDir \$mainFile \${scriptDir} | \
    \${scriptDir}/precompile.sh | \
    \${pandocCmd} \${pandocFlag} | \
    \${scriptDir}/postcompile.sh > \${target}

