loopback-datasource-juggler/scripts/doc.sh

29 lines
507 B
Bash
Raw Normal View History

2013-03-23 18:50:01 +00:00
#!/bin/bash
src=$1
dest=$2
if ! [ `which ronn` ]; then
echo 'ronn rubygem is not installed, run "gem install ronn"'
exit 0
fi
mkdir -p $(dirname $dest)
# VERSION=$(grep version package.json | perl -pi -e 's/[^-\d\.]//g')
case $dest in
*.[13])
ronn --roff $1 --pipe --organization=1602\ Software --manual=JugglingDB > $2
exit $?
;;
*.html)
ronn -5 $1 --pipe\
2013-03-24 00:43:47 +00:00
--style='print toc'\
2013-03-23 18:50:01 +00:00
--organization=1602\ Software\
--manual=JugglingDB > $2
exit $?
;;
esac