diff options
author | Pascal Rigaux <pixel@mandriva.com> | 1999-08-24 08:52:17 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 1999-08-24 08:52:17 +0000 |
commit | ed18d4ad1743445dc1c49d65b5a64a0c73510edd (patch) | |
tree | 208804d71c3bfa46c1bd1c681dd0609f7835e24d /perl-install | |
parent | 33280055c72fd53c4f85db213d7415ca0a064a7e (diff) | |
download | drakx-backup-do-not-use-ed18d4ad1743445dc1c49d65b5a64a0c73510edd.tar drakx-backup-do-not-use-ed18d4ad1743445dc1c49d65b5a64a0c73510edd.tar.gz drakx-backup-do-not-use-ed18d4ad1743445dc1c49d65b5a64a0c73510edd.tar.bz2 drakx-backup-do-not-use-ed18d4ad1743445dc1c49d65b5a64a0c73510edd.tar.xz drakx-backup-do-not-use-ed18d4ad1743445dc1c49d65b5a64a0c73510edd.zip |
no_comment
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/Makefile | 2 | ||||
-rw-r--r-- | perl-install/common.pm | 23 | ||||
-rw-r--r-- | perl-install/share/themes-savane.rc | 2 |
3 files changed, 16 insertions, 11 deletions
diff --git a/perl-install/Makefile b/perl-install/Makefile index f3ade7db5..2d4ca11f8 100644 --- a/perl-install/Makefile +++ b/perl-install/Makefile @@ -31,7 +31,7 @@ tar: clean floppy: dd if=/dev/zero of=/tmp/initrd bs=1k count=2000 ; echo y | mke2fs /tmp/initrd ; mount /tmp/initrd /mnt/disk/ -o loop ; cp -a ../install1/* /mnt/disk/ ; umount /mnt/disk ; gzip -c /tmp/initrd > /tmp/initrd.img ; mcopy -o /tmp/initrd.img a: -tar-diskdrake: clean +tar-diskdrake: clean pci_probing cd .. ; rm -rf diskdrake ; cp -af perl-install diskdrake l=`./perl2fcalls -uses -excludec diskdrake | sort | uniq | sed -e 's/::/\//' -e 's/^/diskdrake\//' -e 's/$$/.pm/'` ; \ diff --git a/perl-install/common.pm b/perl-install/common.pm index ca6d9840d..78533befc 100644 --- a/perl-install/common.pm +++ b/perl-install/common.pm @@ -173,18 +173,23 @@ sub untranslate($@) { } sub warp_text($;$) { - my ($text, $width) = shift; + my ($text, $width) = @_; $width ||= 80; - - my ($t, @l); foreach (split /\s+/, $text) { - if (length "$t $_" > $width) { - push @l, $t; - $t = $_; - } else { - $t = "$t $_"; + + my @l; + foreach (split "\n", $text) { + my $t; + foreach (split /\s+/, $_) { + if (length "$t $_" > $width) { + push @l, $t; + $t = $_; + } else { + $t = "$t $_"; + } } + push @l, $t; } - @l, $t; + @l; } sub getVarsFromSh($) { diff --git a/perl-install/share/themes-savane.rc b/perl-install/share/themes-savane.rc index 38ecc11d5..74f6391f2 100644 --- a/perl-install/share/themes-savane.rc +++ b/perl-install/share/themes-savane.rc @@ -29,7 +29,7 @@ style "button" style "background" { - bg[NORMAL] = { 0, 0.67, 0 } + bg[NORMAL] = { 0.67, 0.33, 1.0 } } widget_class "*" style "any" |