@ -15,12 +15,15 @@ NON_VARIABLES = ('UTF', 'USE', 'TCP', 'SMP', 'PXE', 'PPC', 'MAC',
' GRP ' , ' DOCTYPE ' , ' DHCP ' , ' DEFAULT ' , ' ATARAID ' , ' APPEND ' )
' GRP ' , ' DOCTYPE ' , ' DHCP ' , ' DEFAULT ' , ' ATARAID ' , ' APPEND ' )
EXTRA_VARIABLES = [ ' ARCH_OVERRIDE ' , ' BOOTLOADER ' , ' CLEAR_CACHE_DIR ' , ' DEFAULT_KERNEL_SOURCE ' , ' DISTDIR ' , ' GK_SHARE ' , ' BUSYBOX_APPLETS ' ]
EXTRA_VARIABLES = [ ' ARCH_OVERRIDE ' , ' BOOTLOADER ' , ' CLEAR_CACHE_DIR ' , ' DEFAULT_KERNEL_SOURCE ' , ' DISTDIR ' , ' GK_SHARE ' , ' BUSYBOX_APPLETS ' ]
for app in ( ' DEVICE_MAPPER ' , ' UNIONFS_FUSE ' , ' BUSYBOX ' , ' DMRAID ' , ' LVM ' , ' ISCSI ' , ' FUSE ' , ' GPG ' ):
for app in ( ' DEVICE_MAPPER ' , ' UNIONFS_FUSE ' , ' BUSYBOX ' , ' DMRAID ' , ' LVM ' , ' ISCSI ' , ' FUSE ' , ' GPG ' , ' MDADM ' ):
for prop in ( ' DIR ' , ' SRCTAR ' , ' VER ' ) :
for prop in ( ' DIR ' , ' SRCTAR ' , ' VER ' ) :
EXTRA_VARIABLES . append ( ' %s _ %s ' % ( app , prop ) )
EXTRA_VARIABLES . append ( ' %s _ %s ' % ( app , prop ) )
EXTRA_VARIABLES = tuple ( EXTRA_VARIABLES )
EXTRA_VARIABLES = tuple ( EXTRA_VARIABLES )
IGNORE_OPTIONS = ( ' help ' , ' version ' )
IGNORE_OPTIONS = ( ' help ' , ' version ' )
_GPG_PARAMETERS = ( ' encrypt ' , ' symmetric ' )
IGNORE_PARAMETERS = _GPG_PARAMETERS
DEPRECATED_PARAMETERS = ( ' lvm2 ' , ' evms2 ' , ' gensplash ' , ' gensplash-res ' )
def exract_gen_cmdline_sh ( ) :
def exract_gen_cmdline_sh ( ) :
@ -55,6 +58,8 @@ def exract_gen_cmdline_sh():
para_name = match . group ( 1 )
para_name = match . group ( 1 )
if para_name in IGNORE_OPTIONS :
if para_name in IGNORE_OPTIONS :
continue
continue
if para_name in DEPRECATED_PARAMETERS :
continue
gen_cmdline_sh_parsing_long_params . add ( para_name )
gen_cmdline_sh_parsing_long_params . add ( para_name )
gen_cmdline_sh_variables = set ( )
gen_cmdline_sh_variables = set ( )
@ -96,6 +101,9 @@ def extract_genkernel_8_txt():
if para_name == ' no- ' :
if para_name == ' no- ' :
continue
continue
if para_name in IGNORE_PARAMETERS :
continue
m = yes_no . match ( para_name )
m = yes_no . match ( para_name )
if m :
if m :
p_yes = m . group ( 2 )
p_yes = m . group ( 2 )
@ -244,21 +252,21 @@ def main():
# Future work (due extensions)
# Future work (due extensions)
print ( ' Options missing from the *man page*: ' )
print ( ' Variables missing from *web page*: ' )
print_set ( gen_cmdline_sh_parsing_long_params . difference ( genkernel_8_txt_long_params ) )
print_set ( known_variales . difference ( genkernel_xml_variables ) )
print ( ' Options missing from *--help*: ' )
print_set ( gen_cmdline_sh_parsing_long_params . difference ( gen_cmdline_sh_usage_long_params ) )
print ( ' Options missing from *web page*: ' )
print ( ' Options missing from *web page*: ' )
print_set ( gen_cmdline_sh_parsing_long_params . difference ( genkernel_xml_long_params ) )
print_set ( gen_cmdline_sh_parsing_long_params . difference ( genkernel_xml_long_params ) )
print ( ' Variables missing from *web page*: ' )
print_set ( known_variales . difference ( genkernel_xml_variables ) )
print ( ' Variables missing from *genkernel.conf*: ' )
print ( ' Variables missing from *genkernel.conf*: ' )
print_set ( known_variales . difference ( genkernel_conf_variables ) )
print_set ( known_variales . difference ( genkernel_conf_variables ) )
print ( ' Options missing from the *man page*: ' )
print_set ( gen_cmdline_sh_parsing_long_params . difference ( genkernel_8_txt_long_params ) )
print ( ' Options missing from *--help*: ' )
print_set ( gen_cmdline_sh_parsing_long_params . difference ( gen_cmdline_sh_usage_long_params ) )
# Future work (due removal and updates)
# Future work (due removal and updates)
print ( ' Removed options still mentioned in the *man page*: ' )
print ( ' Removed options still mentioned in the *man page*: ' )