-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdbuild
More file actions
executable file
·29 lines (29 loc) · 776 Bytes
/
Copy pathdbuild
File metadata and controls
executable file
·29 lines (29 loc) · 776 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#! /bin/bash
# echo $1
if [ -e publican.cfg ]
then
publican build --langs=en-US --formats=html,html-single
if [ $? = 0 ] && [ -z "$1" ]
then
quickview
elif [ "$1" == "--noview" ]
then
echo "Not displaying book. Please refresh your web browser."
else
echo "Error with publican. Not opening in web browser."
fi
elif [ -e master.adoc ]
then
if [ $? = 0 ] && [ -z "$1" ]
then
ccutil compile --format html-single --lang en-US --open > /dev/null 2> /dev/null
elif [ "$1" == "--noview" ]
then
ccutil compile --format html-single --lang en-US
echo "Not displaying book. Please refresh your web browser."
else
echo "Error with ccutil. Not opening in your web browser."
fi
else
echo "No book found"
fi