haiku/data/bin/welcome
Matt Madia 5b9c0414de 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
2011-08-13 02:34:16 +00:00

17 lines
392 B
Bash
Executable File

#!/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