-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add make target to open local documentation
Signed-off-by: Nathaniel Graff <[email protected]>
- Loading branch information
1 parent
f2c7f75
commit 7a27caa
Showing
2 changed files
with
29 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/usr/bin/env sh | ||
|
||
SDK_PATH="$( cd "$(dirname "$0")/.." ; pwd -P )" | ||
DOCS_PATH=$SDK_PATH/doc/html/index.html | ||
|
||
XDG_OPEN=`which xdg-open` | ||
OPEN=`which open` | ||
|
||
if [ "$XDG_OPEN" != "" ]; then | ||
echo "Opening $DOCS_PATH" | ||
$XDG_OPEN $DOCS_PATH | ||
|
||
elif [ "$OPEN" != "" ]; then | ||
echo "Opening $DOCS_PATH" | ||
$OPEN $DOCS_PATH | ||
|
||
else | ||
echo "Please open $DOCS_PATH in your preferred HTML viewer" | ||
fi | ||
|