3 # m4 wrapper script which uses $1.m4 as template file, feeds it to m4 and
4 # writes it to m4 with a warning at the beginning to not edit the generated
7 # All arguments to this script (except the first which is the filename) are
11 # First argument is file name.
15 # Write a warning to the generated file.
16 echo "###################################" > $file
17 echo "# WARNING! DO NOT EDIT THIS FILE! #" >> $file
18 echo "###################################" >> $file
20 echo "# It was generated from $file.m4 on `date`." >> $file
23 # Process $1.m4 with m4 using the given options.
24 m4 $* $file.m4 >> $file