Subversion Repositories SvarDOS

Rev

Rev 123 | Rev 129 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 123 Rev 124
Line 2... Line 2...
2
 
2
 
3
SVNLSCHK='./svnlschk'
3
SVNLSCHK='./svnlschk'
4
COREDIR='/srv/www/svarog386.viste.fr/repos/core'
4
COREDIR='/srv/www/svarog386.viste.fr/repos/core'
5
HTMLFILE='/srv/www/svarog386.viste.fr/index-nls.htm'
5
HTMLFILE='/srv/www/svarog386.viste.fr/index-nls.htm'
6
INSTALLNLS='/root/svarog386/files/floppy/nls'
6
INSTALLNLS='/root/svarog386/files/floppy/nls'
-
 
7
NLSTEMPDIR='/tmp/sv_nls'
-
 
8
NLSARCH='/srv/www/svarog386.viste.fr/nls.zip'
7
 
9
 
8
LANGSLIST="en      fr     it      pl     ru      si      tr"
10
LANGSLIST="en      fr     it      pl     ru      si      tr"
9
LANGSLONG="default french italian polish russian slovene turkish"
11
LANGSLONG="default french italian polish russian slovene turkish"
10
 
12
 
11
##############################################################################
13
##############################################################################
Line 18... Line 20...
18
  echo "Package: $pkgname"
20
  echo "Package: $pkgname"
19
 
21
 
20
  if [ $nlstype -eq 0 ] ; then
22
  if [ $nlstype -eq 0 ] ; then
21
    LANGS=$LANGSLIST
23
    LANGS=$LANGSLIST
22
    ENCOUNT=`$SVNLSCHK $f en $nlstype`
24
    ENCOUNT=`$SVNLSCHK $f en $nlstype`
-
 
25
    unzip -Cj "$f" nls/\* -d "$NLSTEMPDIR/nls/"
23
  else
26
  else
24
    LANGS=$LANGSLONG
27
    LANGS=$LANGSLONG
25
    ENCOUNT=`$SVNLSCHK $f default $nlstype`
28
    ENCOUNT=`$SVNLSCHK $f default $nlstype`
-
 
29
    if [ $nlstype -eq 1 ] ; then
-
 
30
      unzip -Cj "$f" source/command/strings/\*.lng -d "$NLSTEMPDIR/nls/command/"
-
 
31
    else
-
 
32
      unzip -Cj "$f" source/command/strings/\*.err -d "$NLSTEMPDIR/nls/command/"
-
 
33
    fi
26
  fi
34
  fi
27
 
35
 
28
  echo "<tr>" >> $HTMLFILE
36
  echo "<tr>" >> $HTMLFILE
29
  echo "  <td class=\"pkg\">$pkgname</td>" >> $HTMLFILE
37
  echo "  <td class=\"pkg\">$pkgname</td>" >> $HTMLFILE
30
 
38
 
Line 65... Line 73...
65
  printf "<th>%s</th>" "$l" >> $HTMLFILE
73
  printf "<th>%s</th>" "$l" >> $HTMLFILE
66
done
74
done
67
 
75
 
68
printf "\n</tr>\n" >> $HTMLFILE
76
printf "\n</tr>\n" >> $HTMLFILE
69
 
77
 
-
 
78
mkdir -p "$NLSTEMPDIR/nls/command"
-
 
79
 
70
# process INSTALL
80
# process INSTALL
71
mkdir /tmp/nls
81
mkdir /tmp/nls
72
cp $INSTALLNLS/install.* /tmp/nls/
82
cp $INSTALLNLS/install.* /tmp/nls/
73
CURDIR=`pwd`
83
CURDIR=`pwd`
74
cd /tmp
84
cd /tmp
75
zip -qq -r install.zip nls
85
zip -qq -r install.zip nls
-
 
86
rm -rf /tmp/nls
76
cd $CURDIR
87
cd $CURDIR
77
processfile /tmp/install.zip "install" 0
88
processfile /tmp/install.zip "install" 0
78
rm /tmp/install.zip
89
rm /tmp/install.zip
79
rm -rf /tmp/nls
-
 
80
 
90
 
81
# process COMMAND (special NLS format)
91
# process COMMAND (special NLS format)
82
processfile $COREDIR/command.zip "command (lng)" 1
92
processfile $COREDIR/command.zip "command (lng)" 1
83
processfile $COREDIR/command.zip "command (err)" 2
93
processfile $COREDIR/command.zip "command (err)" 2
84
 
94
 
Line 95... Line 105...
95
 
105
 
96
done
106
done
97
 
107
 
98
cat tail.html >> $HTMLFILE
108
cat tail.html >> $HTMLFILE
99
 
109
 
-
 
110
cd "$NLSTEMPDIR"
-
 
111
zip -9 -k -r "$NLSARCH" nls
-
 
112
rm -rf "$NLSTEMPDIR"
-
 
113
cd "$CURDIR"
-
 
114
 
100
exit 0
115
exit 0