4 MKSQ
=..
/src
/linux
/linux
/scripts
/squashfs
/mksquashfs
6 ADDLANG
=..
/tools
/addlang
8 LANG
="sc sp sw it de fr en"
10 if [ a
$1 != a
] ; then
17 # Handle original EN language
18 #$MKSQ ../src/router/www/cisco_wrt54g_en oen.sq
19 #$TRX -o oen.trx oen.sq
20 #$ADDLANG -i oen.trx -o lang_img/oen_lang.bin
23 #cp -rfa ../src/router/mipsel-uclibc/target/www/ /tmp/www_m
24 #rm -rf /tmp/www_m/lang_pack
25 #rm -rf /tmp/www_m/help
27 # Handle multiple language
28 for lang
in $LANG ; do
31 if [ ! -d ..
/src
/router
/www
/lang_pack
/${lang}_lang_pack
/ ] ; then
32 echo "Cann't find \"$lang\" language package."
37 cp -rfa ..
/src
/router
/mipsel-uclibc
/target
/www
/ /tmp
/www_m
38 rm -rf /tmp
/www_m
/lang_pack
39 rm -rf /tmp
/www_m
/help
41 cp -rfa ..
/src
/router
/www
/lang_pack
/${lang}_lang_pack
/ /tmp
/www_m
/lang_pack
42 cp -rfa ..
/src
/router
/www
/lang_pack
/all_help
/${lang}_help
/tmp
/www_m
/help
44 test -d ..
/src
/router
/www
/lang_pack
/${lang}_image
/ && cp -rfa ..
/src
/router
/www
/lang_pack
/${lang}_image
/*.gif
/tmp
/www_m
/image
/
46 $MKSQ /tmp
/www_m
2${lang}.
sq
49 for lang
in $LANG ; do
50 $TRX -o 2${lang}.trx
2${lang}.
sq
51 $ADDLANG -i 2${lang}.trx
-o lang_img
/${lang}_lang.bin