diff options
author | Anne Nicolas <ennael@mandriva.org> | 2009-10-27 11:30:46 +0000 |
---|---|---|
committer | Anne Nicolas <ennael@mandriva.org> | 2009-10-27 11:30:46 +0000 |
commit | 642846d0d18e517d865b065faa10b79929dc9758 (patch) | |
tree | 5225bddc8b0a8ea763a37813fd03690bc24fa349 /update-indexhtml | |
parent | f70c486a3df1bd03ebc028243338282d2aa580f7 (diff) | |
download | indexhtml-642846d0d18e517d865b065faa10b79929dc9758.tar indexhtml-642846d0d18e517d865b065faa10b79929dc9758.tar.gz indexhtml-642846d0d18e517d865b065faa10b79929dc9758.tar.bz2 indexhtml-642846d0d18e517d865b065faa10b79929dc9758.tar.xz indexhtml-642846d0d18e517d865b065faa10b79929dc9758.zip |
cleaning
add translation for desktop file
add fr translation
Diffstat (limited to 'update-indexhtml')
-rwxr-xr-x | update-indexhtml | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/update-indexhtml b/update-indexhtml deleted file mode 100755 index fa2cbae..0000000 --- a/update-indexhtml +++ /dev/null @@ -1,66 +0,0 @@ -#!/bin/sh -#--------------------------------------------------------------- -# Project : Mandrakelinux -# Module : indexhtml -# File : update-indexhtml -# Version : $Id$ -# Author : Frederic Lepied -# Created On : Wed Jan 19 16:48:08 2005 -# Purpose : create the index.html file which is opened -# by default by the web browsers. -#--------------------------------------------------------------- - -datadir=/usr/share -idxdir=$datadir/mdk/indexhtml -docdir=$datadir/doc/HTML - -[ -d $idxdir ] || exit 1 -[ -d $docdir ] || exit 1 - -function get() { - wget -q -N -O $docdir/index.tmp $1 && \ - tar jxf $docdir/index.tmp -C $docdir && exit 0 -} - -if [ -r /etc/sysconfig/i18n ] ; then - . /etc/sysconfig/i18n - if [ -n "$LANGUAGE" ]; then - LISTLANG="`echo $LANGUAGE | tr ':' ' '`" ; - else - if [ -n "$LANG" ]; then - LISTLANG="$LANG" - fi - fi -fi - -( -if [ "$1" != nonetwork ] && /sbin/ip route | grep -q default; then - URL=http://www.mandrakelinux.com/dist/2005LE - if [ -r /etc/profile.d/proxy.sh ]; then - . /etc/profile.d/proxy.sh - fi - for i in $LISTLANG; do - get $URL/index-$i.tar.bz2 - - lang=`echo $i | cut -b-2` - if [ "$lang" != "$i" ]; then - get $URL/index-$lang.tar.bz2 - fi - done -fi - -for i in $LISTLANG en; do - if [ -r $idxdir/index-$i.html ]; then - cp -pf $idxdir/index-$i.html $docdir/index.html - break - else - lang=`echo $i | cut -b-2` - if [ -r $idxdir/index-$lang.html ]; then - cp -pf $idxdir/index-$lang.html $docdir/index.html - break; - fi - fi -done -) & - -# update-indexhtml ends here |