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:
@@ -331,6 +331,14 @@ SEARCH on installoptionalpackage = [ FDirName $(HAIKU_TOP) data bin ] ;
|
|||||||
AddFilesToHaikuImage system bin : installoptionalpackage ;
|
AddFilesToHaikuImage system bin : installoptionalpackage ;
|
||||||
SEARCH on install-wifi-firmwares.sh = [ FDirName $(HAIKU_TOP) data bin ] ;
|
SEARCH on install-wifi-firmwares.sh = [ FDirName $(HAIKU_TOP) data bin ] ;
|
||||||
AddFilesToHaikuImage system bin : install-wifi-firmwares.sh ;
|
AddFilesToHaikuImage system bin : install-wifi-firmwares.sh ;
|
||||||
|
SEARCH on welcome = [ FDirName $(HAIKU_TOP) data bin ] ;
|
||||||
|
AddFilesToHaikuImage system bin : welcome ;
|
||||||
|
AddSymlinkToHaikuImage home Desktop
|
||||||
|
: /boot/system/bin/welcome : Welcome ;
|
||||||
|
SEARCH on userguide = [ FDirName $(HAIKU_TOP) data bin ] ;
|
||||||
|
AddFilesToHaikuImage system bin : userguide ;
|
||||||
|
AddSymlinkToHaikuImage home Desktop
|
||||||
|
: /boot/system/bin/userguide : User\ Guide ;
|
||||||
|
|
||||||
# Add the files to be used by installoptionalpackage.
|
# Add the files to be used by installoptionalpackage.
|
||||||
AddDirectoryToHaikuImage common data optional-packages ;
|
AddDirectoryToHaikuImage common data optional-packages ;
|
||||||
|
|||||||
@@ -1684,10 +1684,6 @@ if [ IsOptionalHaikuImagePackageAdded Welcome ] {
|
|||||||
CopyDirectoryToHaikuImage system documentation
|
CopyDirectoryToHaikuImage system documentation
|
||||||
: [ FDirName $(HAIKU_TOP) docs userguide ]
|
: [ FDirName $(HAIKU_TOP) docs userguide ]
|
||||||
: userguide : -x .svn ;
|
: userguide : -x .svn ;
|
||||||
AddSymlinkToHaikuImage home Desktop
|
|
||||||
: /boot/system/documentation/welcome/welcome_en.html : Welcome ;
|
|
||||||
AddSymlinkToHaikuImage home Desktop
|
|
||||||
: /boot/system/documentation/userguide/en/contents.html : User\ Guide ;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Executable
+16
@@ -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
|
||||||
|
|
||||||
Executable
+16
@@ -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
|
||||||
|
|
||||||
Reference in New Issue
Block a user