2017-11-05 16:34:18 +00:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
|
|
|
# rmsh - the remark shell
|
|
|
|
#
|
|
|
|
# A tool for creating and handling remark.js based presentations
|
|
|
|
|
|
|
|
RMSH_DIR=~/opt/rmsh
|
|
|
|
BROWSER=firefox
|
|
|
|
|
|
|
|
case $1 in
|
|
|
|
"create")
|
|
|
|
mkdir $2
|
|
|
|
cd $2
|
|
|
|
cp $RMSH_DIR/share/html/presentation.html .
|
|
|
|
cp $RMSH_DIR/share/js/remark.min.js .
|
2017-11-05 17:09:43 +00:00
|
|
|
sass $RMSH_DIR/share/styles/$3/$3.scss style.css
|
2017-11-05 17:12:01 +00:00
|
|
|
cp -r $RMSH_DIR/share/styles/$3/img .
|
2017-11-05 16:34:18 +00:00
|
|
|
touch presentation.md
|
|
|
|
;;
|
|
|
|
"view")
|
|
|
|
$BROWSER presentation.html
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|