diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2005-01-25 13:31:33 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2005-01-25 13:31:33 +0000 |
commit | 639ed2a6846e629b3ace24145b6b0e332bb3df9f (patch) | |
tree | 61c7899db394e705c282a87a132ea6c98502a270 /make_boot_img | |
parent | 49bf705209543d419b229fe9a87e3065a1094d47 (diff) | |
download | drakx-639ed2a6846e629b3ace24145b6b0e332bb3df9f.tar drakx-639ed2a6846e629b3ace24145b6b0e332bb3df9f.tar.gz drakx-639ed2a6846e629b3ace24145b6b0e332bb3df9f.tar.bz2 drakx-639ed2a6846e629b3ace24145b6b0e332bb3df9f.tar.xz drakx-639ed2a6846e629b3ace24145b6b0e332bb3df9f.zip |
factorize code in VERSION()
Diffstat (limited to 'make_boot_img')
-rwxr-xr-x | make_boot_img | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/make_boot_img b/make_boot_img index de1a4c341..3e3f1328e 100755 --- a/make_boot_img +++ b/make_boot_img @@ -697,6 +697,15 @@ rescue-net: boots the rescue image from a network server } +sub VERSION { + my ($kernels) = @_; + + map { "$_\n" } + $ENV{DISTRIB_DESCR}, + scalar gmtime(), + '', @$kernels; +} + sub syslinux_all_files { my ($dir, $kernels) = @_; @@ -741,10 +750,7 @@ sub boot_iso { syslinux_all_files('.boot_iso/isolinux', $kernels); - output('.boot_iso/VERSION', map { "$_\n" } - $ENV{DISTRIB_DESCR}, - scalar gmtime(), - '', @$kernels); + output('.boot_iso/VERSION', VERSION($kernels)); _ "cp /usr/lib/syslinux/isolinux.bin .boot_iso/isolinux/isolinux.bin"; output('.boot_iso/isolinux/isolinux.cfg', syslinux_cfg_all('cdrom-changedisk')); |