From ed18d4ad1743445dc1c49d65b5a64a0c73510edd Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 24 Aug 1999 08:52:17 +0000 Subject: no_comment --- perl-install/Makefile | 2 +- perl-install/common.pm | 23 ++++++++++++++--------- perl-install/share/themes-savane.rc | 2 +- 3 files changed, 16 insertions(+), 11 deletions(-) (limited to 'perl-install') 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" -- cgit v1.2.1