Added two scripts, which attempt to load the appropriate localized docs.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42630 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Matt Madia
2011-08-13 02:34:16 +00:00
parent 5c6260dc23
commit 5b9c0414de
4 changed files with 40 additions and 4 deletions
+16
View File
@@ -0,0 +1,16 @@
#!/bin/bash
userGuideURL="\
http://svn.haiku-os.org/haiku/haiku/trunk/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
+16
View File
@@ -0,0 +1,16 @@
#!/bin/bash
welcomeURL="\
http://svn.haiku-os.org/haiku/haiku/trunk/docs/welcome/welcome_en.html"
welcomeDir=/boot/system/documentation/welcome/
welcomeFile=$welcomeDir/welcome_en.html
localizedWelcomeFile=$welcomeDir/welcome_"$LANG".html
if [ -f $localizedWelcomeFile ]; then
open file://$localizedWelcomeFile
elif [ -f $welcomeFile ]; then
open $welcomeFile
else
open $welcomeURL
fi