Added VIM tools, and help pages to all scripts missing one

This commit is contained in:
ville rantanen
2015-04-02 12:07:42 +03:00
parent 85928b7326
commit 029e2f5ad0
15 changed files with 85 additions and 18 deletions

View File

@@ -1,8 +1,11 @@
#!/bin/bash
if [ -z "$1" ]
then echo Expecting doi code
exit
fi
function helpexit() {
echo Print out bibtex entry from a DOI.
echo Give DOI code as the argument
exit
}
[[ -z "$1" ]] && helpexit
[[ "$1" = "-h" ]] && helpexit
curl -LH "Accept: text/bibliography; style=bibtex" "http://dx.doi.org/$1"

View File

@@ -10,8 +10,13 @@ function exit_reset {
setterm -cursor on
exit
}
function short_help() {
echo MarkSlider, the markdown syntax slideshow engine
echo Start without arguments to view the demo
exit
}
[ -z "$1" ] && display_self
[ "$1" = "-h" ] && display_self
[ "$1" = "-h" ] && short_help
[ -f "$1" ] || {
echo Cannot find file: $1