17 lines
392 B
Bash
Executable File
17 lines
392 B
Bash
Executable File
#!/bin/bash
|
|
|
|
userGuideURL="\
|
|
http://cgit.haiku-os.org/haiku/plain/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
|
|
|