I have a problem with adding new ldlm flag. It looks like master uses autogen to generate lustre_dlm_flags.h
I've added flag description to lustre_dlm_flags.def but observe following error :
$ pwd
/local/work/lustre-release/contrib/bit-masks
$ make
+ autogen --version
+ autogen -DTESTING=1 lustre_dlm_flags.def
/bin/bash: line 46: .: script.sh: file not found
columns: illegal option – end= };
columns (GNU AutoGen) - Columnize Input Text - Ver. 1.2
USAGE: columns [ -<flag> [<val>] | --<name>[
{=| }<val>] ]...
Flg Arg Option-Name Description
-W Num width Maximum Line Width
-c Num columns Desired number of columns
-w Num col-width Set width of each column
Num spread maximum spread added to column width
no fill Fill lines with input
-I Str indent Line prefix or indentation
Str first-indent First line prefix
Num tab-width tab width
-s opt sort Sort input text
-f Str format Formatting string for each input
-S Str separation Separation string - follows all but last
Str line-separation string at end of all lines but last
no by-columns Print entries in column order
-i Str input Input file (if not stdin)
-v opt version Output version information and exit
-? no help Display usage information and exit
-! no more-help Extended usage information passed thru pager
-> opt save-opts Save the option state to a config file
-< Str load-opts Load options from a config file
Options are specified by doubled hyphens and their name
or by a single hyphen and the flag character.
please send bug reports to: autogen-users@lists.sourceforge.net
columns: illegal option – end= };
columns (GNU AutoGen) - Columnize Input Text - Ver. 1.2
USAGE: columns [ -<flag>
[<val>] | --<name>[{=| }
<val>] ]...
Flg Arg Option-Name Description
-W Num width Maximum Line Width
-c Num columns Desired number of columns
-w Num col-width Set width of each column
Num spread maximum spread added to column width
no fill Fill lines with input
-I Str indent Line prefix or indentation
Str first-indent First line prefix
Num tab-width tab width
-s opt sort Sort input text
-f Str format Formatting string for each input
-S Str separation Separation string - follows all but last
Str line-separation string at end of all lines but last
no by-columns Print entries in column order
-i Str input Input file (if not stdin)
-v opt version Output version information and exit
-? no help Display usage information and exit
-! no more-help Extended usage information passed thru pager
-> opt save-opts Save the option state to a config file
-< Str load-opts Load options from a config file
Options are specified by doubled hyphens and their name
or by a single hyphen and the flag character.
please send bug reports to: autogen-users@lists.sourceforge.net
+ rm -f ../../lustre/include/lustre_dlm_flags.h
+ sed '/It has been AutoGen-ed/s/-ed.*/-ed/;s/ *$//' lustre_dlm_flags.h
I've installed autogen-5.9.4-7 using :
$ yum --enablerepo=epel-testing install autogen
How autogen is supposed to be executed ? manually or during Lustre make ?
BTW script.sh is generated in the current directory and I managed to patch lustre_dlm_flags.tpl to execute it from current directory.
Bruce added the auto build of the LDLM flags, perhaps he can comment on how this should be done correctly, if it isn't automatically generated by make.