diff options
author | Frederic Crozat <fcrozat@mandriva.com> | 2009-10-26 15:12:35 +0000 |
---|---|---|
committer | Frederic Crozat <fcrozat@mandriva.com> | 2009-10-26 15:12:35 +0000 |
commit | 2f8a04b273b955bb204751f7ebd9acc60cb10854 (patch) | |
tree | b68dde777bdd3462affc5b10d1a598f92c54a3fa | |
parent | bf03462eceaeae6cd9a2c82206b55dbe3ea0e27c (diff) | |
download | indexhtml-2f8a04b273b955bb204751f7ebd9acc60cb10854.tar indexhtml-2f8a04b273b955bb204751f7ebd9acc60cb10854.tar.gz indexhtml-2f8a04b273b955bb204751f7ebd9acc60cb10854.tar.bz2 indexhtml-2f8a04b273b955bb204751f7ebd9acc60cb10854.tar.xz indexhtml-2f8a04b273b955bb204751f7ebd9acc60cb10854.zip |
add about-mandriva script
-rwxr-xr-x | about/about-mandriva | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/about/about-mandriva b/about/about-mandriva new file mode 100755 index 0000000..59c5bb8 --- /dev/null +++ b/about/about-mandriva @@ -0,0 +1,22 @@ +#!/bin/sh +if [ "x$GNOME_DESKTOP_SESSION_ID" != "x" -a -x /usr/bin/yelp ]; then + www_browser="/usr/bin/yelp" +else + www_browser="xdg-open" +fi + +for lang in `echo $LANG:$LANGUAGE | tr ':' ' ' | cut -d'_' -f1` ; do + file="/usr/share/mdk/about/index-$lang.html" + if [ -f "$file" ]; then + $www_browser $file + exit 0 + fi +done + +if [ -f /usr/share/mdk/about/index.html ]; then + $www_browser /usr/share/mdk/about/index.html + exit 0 +fi + +echo "file not found for about Mandriva" +exit 1 |