3 # The caller must pass args: -v hfile=NAME rsync.1.md
6 heading =
"/* DO NOT EDIT THIS FILE! It is auto-generated from a list of values in " ARGV[1] "! */"
7 if (hfile ~
/compress
/) {
8 define =
"#define DEFAULT_DONT_COMPRESS"
11 define =
"#define DEFAULT_CVSIGNORE"
19 if (value_list
!= "") value_list = value_list
" "
20 value_list = value_list prefix $
2
24 value_list ~
/\.gz
/ && hfile ~
/compress
/ {
28 value_list ~
/SCCS
/ && hfile ~
/cvsignore
/ {
36 print heading
"\n\n" define
" \"" value_list
"\"" > hfile
38 print "Failed to find a value list in " ARGV[1] " for " hfile