haiku/data/bin/userguide
2018-08-20 21:00:25 -04:00

17 lines
380 B
Bash
Executable File

#!/bin/bash
userGuideURL="\
https://www.haiku-os.org/docs/userguide/en/contents.html"
userGuideDir=/boot/system/documentation/userguide/
userGuide=$userGuideDir/en/contents.html
localizedUserGuide=$userGuideDir/"$LANG"/contents.html
if [ -f $localizedUserGuide ]; then
open file://$localizedUserGuide
elif [ -f $userGuide ]; then
open $userGuide
else
open $userGuideURL
fi