2011-08-13 06:34:16 +04:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
userGuideURL="\
|
2012-02-19 13:43:26 +04:00
|
|
|
http://cgit.haiku-os.org/haiku/plain/docs/userguide/en/contents.html"
|
2011-08-13 06:34:16 +04:00
|
|
|
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
|
|
|
|
|