Added VIM tools, and help pages to all scripts missing one
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user