Skip to content

Commit

Permalink
change option to -imageRootFolder
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandreaquiles committed Sep 5, 2015
1 parent 8c45c6a commit 7cfcee8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ tubaina.sh folder/ -html -showNotes -native
-showNotes exposes instructor comments notes (optional, default hide notes)
-native runs outside Docker (optional, default runs inside Docker)
-dockerImage repo/image (optional, default casadocodigo/gitbook)
-imageRoot folder/ (optional)
-imageRootFolder folder/ (optional)
-help print usage
On your book source folder, add a book.properties with optional book configurations:
Expand Down
6 changes: 3 additions & 3 deletions tubaina2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function show_help {
echo " -showNotes exposes instructor comments notes (optional, default hide notes)"
echo " -native runs outside Docker (optional, default runs inside Docker)"
echo " -dockerImage repo/image (optional, default casadocodigo/gitbook)"
echo " -imageRoot folder/ (optional)"
echo " -imageRootFolder folder/ (optional)"
echo " -help print usage"
echo
echo "On your book source folder, add a book.properties with optional book configurations:"
Expand All @@ -36,7 +36,7 @@ if [ ! -d "$SRCDIR" ]; then
exit 1
fi

OPTS=`getopt -a -l dockerImage: -l showNotes -l native -l html -l epub -l mobi -l pdf -l ebooks -l imageRoot: -l help -n 'tubaina2' -- "$0" "$@"`
OPTS=`getopt -a -l dockerImage: -l showNotes -l native -l html -l epub -l mobi -l pdf -l ebooks -l imageRootFolder: -l help -n 'tubaina2' -- "$0" "$@"`
if [ $? != 0 ] ; then echo; show_help; exit 1 ; fi
eval set -- "$OPTS"

Expand All @@ -48,7 +48,7 @@ while true; do
--showNotes) SHOW_NOTES=true; shift;;
--native) NATIVE=true; shift;;
--html|--epub|--mobi|--pdf|--ebooks) OUTPUT_FORMAT="$1"; shift;;
--imageRoot) IMAGE_ROOT_FOLDER=$2; shift 2;;
--imageRootFolder) IMAGE_ROOT_FOLDER=$2; shift 2;;
--help) show_help; exit 0;;
--) shift; break;;
* ) break ;;
Expand Down

0 comments on commit 7cfcee8

Please sign in to comment.