wok rev 1721
syslinux: generate locale configuration
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Nov 18 16:14:09 2008 +0000 (2008-11-18) |
parents | 6c45f6a1ee90 |
children | dc87e62206dd |
files | syslinux/receipt syslinux/stuff/be.cfg syslinux/stuff/br.cfg syslinux/stuff/ca.cfg syslinux/stuff/common.inc syslinux/stuff/de.cfg syslinux/stuff/de_CH.cfg syslinux/stuff/en.cfg syslinux/stuff/es.cfg syslinux/stuff/fi.cfg syslinux/stuff/fr.cfg syslinux/stuff/fr_CH.cfg syslinux/stuff/hu.cfg syslinux/stuff/it.cfg syslinux/stuff/jp.cfg syslinux/stuff/pt.cfg syslinux/stuff/ru.cfg syslinux/stuff/us.cfg |
line diff
1.1 --- a/syslinux/receipt Tue Nov 18 12:40:05 2008 +0000 1.2 +++ b/syslinux/receipt Tue Nov 18 16:14:09 2008 +0000 1.3 @@ -32,12 +32,34 @@ 1.4 cp -a $src/core/isolinux.bin $fs/boot/isolinux 1.5 cp -a $src/com32/modules/reboot.c32 $fs/boot/isolinux 1.6 cp stuff/*.* $fs/boot/isolinux 1.7 - rm -rf $fs/boot/isolinux/tools $fs/boot/isolinux/*.kbd 2> /dev/null 1.8 - grep kbd$ $fs/boot/isolinux/*.cfg | while read cfg kbd; do 1.9 - cfg=$(basename ${cfg%.cfg:*}) 1.10 - sed -i "s/$kbd/$cfg.kbd/" $fs/boot/isolinux/$cfg.cfg 1.11 - cp $src/$kbd $fs/boot/isolinux/$cfg.kbd 1.12 - done 1.13 + while read cfg kbd loc ; do 1.14 + sed -e "s/^display/kbdmap $cfg.kbd\ndisplay/" \ 1.15 + -e "s/^label/say Now using $kbd keyboard and $loc locale.\nlabel/" \ 1.16 + -e "s/rootfs.gz/rootfs.gz lang=$loc kmap=$kbd/" \ 1.17 + < $fs/boot/isolinux/isolinux.cfg > $fs/boot/isolinux/$cfg.cfg 1.18 + cp $src/$kbd.kbd $fs/boot/isolinux/$cfg.kbd 1.19 + cat >> $fs/boot/isolinux/common.inc <<EOT 1.20 +label $cfg 1.21 + config $cfg.cfg 1.22 +EOT 1.23 + done <<EOT 1.24 +be be-latin1 fr_FR 1.25 +br br-abnt2 pt_PT 1.26 +ca cf fr_FR 1.27 +de de-latin1 de_DE 1.28 +de_CH de_CH-latin1 de_DE 1.29 +en uk C 1.30 +es es es_ES 1.31 +fi fi-latin1 fi 1.32 +fr fr-latin1 fr_FR 1.33 +fr_CH fr_CH-latin1 fr_FR 1.34 +hu hu hu 1.35 +it it it_IT 1.36 +jp jp106 jp_JP 1.37 +pt pt-latin1 pt_PT 1.38 +ru ru ru_RU 1.39 +us us C 1.40 +EOT 1.41 chown root.root $fs/boot/isolinux/* 1.42 # Package all syslinux pkgs 1.43 for i in $(cd $WOK; ls -d syslinux-*)
2.1 --- a/syslinux/stuff/be.cfg Tue Nov 18 12:40:05 2008 +0000 2.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 2.3 @@ -1,8 +0,0 @@ 2.4 -KBDMAP be-latin1.kbd 2.5 -display isolinux.msg 2.6 -SAY Now using be-latin1 keyboard and fr_FR locale. 2.7 -label slitaz 2.8 - kernel /boot/bzImage 2.9 - append initrd=/boot/rootfs.gz rw root=/dev/null vga=normal autologin lang=fr_FR kmap=be-latin1 2.10 - 2.11 -include common.inc
3.1 --- a/syslinux/stuff/br.cfg Tue Nov 18 12:40:05 2008 +0000 3.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 3.3 @@ -1,8 +0,0 @@ 3.4 -KBDMAP br-abnt2.kbd 3.5 -display isolinux.msg 3.6 -SAY Now using br-abnt2 keyboard and pt_PT locale. 3.7 -label slitaz 3.8 - kernel /boot/bzImage 3.9 - append initrd=/boot/rootfs.gz rw root=/dev/null vga=normal autologin lang=pt_PT kmap=br-abnt2 3.10 - 3.11 -include common.inc
4.1 --- a/syslinux/stuff/ca.cfg Tue Nov 18 12:40:05 2008 +0000 4.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 4.3 @@ -1,8 +0,0 @@ 4.4 -KBDMAP cf.kbd 4.5 -display isolinux.msg 4.6 -SAY Now using cf keyboard and fr_FR locale. 4.7 -label slitaz 4.8 - kernel /boot/bzImage 4.9 - append initrd=/boot/rootfs.gz rw root=/dev/null vga=normal autologin lang=fr_FR kmap=cf 4.10 - 4.11 -include common.inc
5.1 --- a/syslinux/stuff/common.inc Tue Nov 18 12:40:05 2008 +0000 5.2 +++ b/syslinux/stuff/common.inc Tue Nov 18 16:14:09 2008 +0000 5.3 @@ -3,48 +3,12 @@ 5.4 kernel /boot/gpxe 5.5 label zeb 5.6 kernel /boot/gpxe 5.7 -label be 5.8 - config be.cfg 5.9 -label br 5.10 - config br.cfg 5.11 -label ca 5.12 - config ca.cfg 5.13 -label ch 5.14 - config fr_CH.cfg 5.15 -label de 5.16 - config de.cfg 5.17 -label de_CH 5.18 - config de_CH.cfg 5.19 label deCH 5.20 config de_CH.cfg 5.21 -label en 5.22 - config en.cfg 5.23 -label es 5.24 - config es.cfg 5.25 -label fi 5.26 - config fi.cfg 5.27 -label fr 5.28 - config fr.cfg 5.29 -label fr_CH 5.30 - config fr_CH.cfg 5.31 label frCH 5.32 config fr_CH.cfg 5.33 -label hu 5.34 - config hu.cfg 5.35 -label it 5.36 - config it.cfg 5.37 -label jp 5.38 - config jp.cfg 5.39 -label pt 5.40 - config pt.cfg 5.41 label reboot 5.42 com32 reboot.c32 5.43 -label ru 5.44 - config ru.cfg 5.45 -label uk 5.46 - config en.cfg 5.47 -label us 5.48 - config us.cfg 5.49 5.50 implicit 0 5.51 prompt 1 5.52 @@ -55,3 +19,4 @@ 5.53 F4 display.txt 5.54 F5 enhelp.txt 5.55 F6 enopts.txt 5.56 +
6.1 --- a/syslinux/stuff/de.cfg Tue Nov 18 12:40:05 2008 +0000 6.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 6.3 @@ -1,8 +0,0 @@ 6.4 -KBDMAP de-latin1.kbd 6.5 -display isolinux.msg 6.6 -SAY Now using de-latin1 keyboard and de_DE locale. 6.7 -label slitaz 6.8 - kernel /boot/bzImage 6.9 - append initrd=/boot/rootfs.gz rw root=/dev/null vga=normal autologin lang=de_DE kmap=de-latin1 6.10 - 6.11 -include common.inc
7.1 --- a/syslinux/stuff/de_CH.cfg Tue Nov 18 12:40:05 2008 +0000 7.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 7.3 @@ -1,8 +0,0 @@ 7.4 -KBDMAP de_CH-latin1.kbd 7.5 -display isolinux.msg 7.6 -SAY Now using de_CH-latin1 keyboard and de_DE locale. 7.7 -label slitaz 7.8 - kernel /boot/bzImage 7.9 - append initrd=/boot/rootfs.gz rw root=/dev/null vga=normal autologin lang=de_DE kmap=de_CH-latin1 7.10 - 7.11 -include common.inc
8.1 --- a/syslinux/stuff/en.cfg Tue Nov 18 12:40:05 2008 +0000 8.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 8.3 @@ -1,8 +0,0 @@ 8.4 -KBDMAP uk.kbd 8.5 -display isolinux.msg 8.6 -SAY Now using uk keyboard and C locale. 8.7 -label slitaz 8.8 - kernel /boot/bzImage 8.9 - append initrd=/boot/rootfs.gz rw root=/dev/null vga=normal autologin lang=C kmap=uk 8.10 - 8.11 -include common.inc
9.1 --- a/syslinux/stuff/es.cfg Tue Nov 18 12:40:05 2008 +0000 9.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 9.3 @@ -1,8 +0,0 @@ 9.4 -KBDMAP es.kbd 9.5 -display isolinux.msg 9.6 -SAY Now using es keyboard and es_ES locale. 9.7 -label slitaz 9.8 - kernel /boot/bzImage 9.9 - append initrd=/boot/rootfs.gz rw root=/dev/null vga=normal autologin lang=es_ES kmap=es 9.10 - 9.11 -include common.inc
10.1 --- a/syslinux/stuff/fi.cfg Tue Nov 18 12:40:05 2008 +0000 10.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 10.3 @@ -1,8 +0,0 @@ 10.4 -KBDMAP fi-latin1.kbd 10.5 -display isolinux.msg 10.6 -SAY Now using fi-latin1 keyboard and fi locale. 10.7 -label slitaz 10.8 - kernel /boot/bzImage 10.9 - append initrd=/boot/rootfs.gz rw root=/dev/null vga=normal autologin lang=fi kmap=fi-latin1 10.10 - 10.11 -include common.inc
11.1 --- a/syslinux/stuff/fr.cfg Tue Nov 18 12:40:05 2008 +0000 11.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 11.3 @@ -1,8 +0,0 @@ 11.4 -KBDMAP fr-latin1.kbd 11.5 -display isolinux.msg 11.6 -SAY Now using fr-latin1 keyboard and fr_FR locale. 11.7 -label slitaz 11.8 - kernel /boot/bzImage 11.9 - append initrd=/boot/rootfs.gz rw root=/dev/null vga=normal autologin lang=fr_FR kmap=fr-latin1 11.10 - 11.11 -include common.inc
12.1 --- a/syslinux/stuff/fr_CH.cfg Tue Nov 18 12:40:05 2008 +0000 12.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 12.3 @@ -1,8 +0,0 @@ 12.4 -KBDMAP fr_CH-latin1.kbd 12.5 -display isolinux.msg 12.6 -SAY Now using fr_CH-latin1 keyboard and fr_FR locale. 12.7 -label slitaz 12.8 - kernel /boot/bzImage 12.9 - append initrd=/boot/rootfs.gz rw root=/dev/null vga=normal autologin lang=fr_FR kmap=fr_CH-latin1 12.10 - 12.11 -include common.inc
13.1 --- a/syslinux/stuff/hu.cfg Tue Nov 18 12:40:05 2008 +0000 13.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 13.3 @@ -1,8 +0,0 @@ 13.4 -KBDMAP hu.kbd 13.5 -display isolinux.msg 13.6 -SAY Now using hu keyboard and hu locale. 13.7 -label slitaz 13.8 - kernel /boot/bzImage 13.9 - append initrd=/boot/rootfs.gz rw root=/dev/null vga=normal autologin lang=hu kmap=hu 13.10 - 13.11 -include common.inc
14.1 --- a/syslinux/stuff/it.cfg Tue Nov 18 12:40:05 2008 +0000 14.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 14.3 @@ -1,8 +0,0 @@ 14.4 -KBDMAP it.kbd 14.5 -display isolinux.msg 14.6 -SAY Now using it keyboard and it_IT locale. 14.7 -label slitaz 14.8 - kernel /boot/bzImage 14.9 - append initrd=/boot/rootfs.gz rw root=/dev/null vga=normal autologin lang=it_IT kmap=it 14.10 - 14.11 -include common.inc
15.1 --- a/syslinux/stuff/jp.cfg Tue Nov 18 12:40:05 2008 +0000 15.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 15.3 @@ -1,8 +0,0 @@ 15.4 -KBDMAP jp106.kbd 15.5 -display isolinux.msg 15.6 -SAY Now using jp106 keyboard and jp_JP locale. 15.7 -label slitaz 15.8 - kernel /boot/bzImage 15.9 - append initrd=/boot/rootfs.gz rw root=/dev/null vga=normal autologin lang=jp_JP kmap=jp106 15.10 - 15.11 -include common.inc
16.1 --- a/syslinux/stuff/pt.cfg Tue Nov 18 12:40:05 2008 +0000 16.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 16.3 @@ -1,8 +0,0 @@ 16.4 -KBDMAP pt-latin1.kbd 16.5 -display isolinux.msg 16.6 -SAY Now using pt-latin1 keyboard and pt_PT locale. 16.7 -label slitaz 16.8 - kernel /boot/bzImage 16.9 - append initrd=/boot/rootfs.gz rw root=/dev/null vga=normal autologin lang=pt_PT kmap=pt-latin1 16.10 - 16.11 -include common.inc
17.1 --- a/syslinux/stuff/ru.cfg Tue Nov 18 12:40:05 2008 +0000 17.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 17.3 @@ -1,8 +0,0 @@ 17.4 -KBDMAP ru.kbd 17.5 -display isolinux.msg 17.6 -SAY Now using ru keyboard and ru_RU locale. 17.7 -label slitaz 17.8 - kernel /boot/bzImage 17.9 - append initrd=/boot/rootfs.gz rw root=/dev/null vga=normal autologin lang=ru_RU kmap=ru 17.10 - 17.11 -include common.inc
18.1 --- a/syslinux/stuff/us.cfg Tue Nov 18 12:40:05 2008 +0000 18.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 18.3 @@ -1,8 +0,0 @@ 18.4 -KBDMAP us.kbd 18.5 -display isolinux.msg 18.6 -SAY Now using us keyboard and C locale. 18.7 -label slitaz 18.8 - kernel /boot/bzImage 18.9 - append initrd=/boot/rootfs.gz rw root=/dev/null vga=normal autologin lang=C kmap=us 18.10 - 18.11 -include common.inc