How can I make a derived file start with a shebang line?
Use the @first directive in @file trees. Use the @silent directive in @root trees. The @first directive allows you to place lines at the very start of files derived from @file nodes. For example, the body text of @file spam.py might be: @first #! /usr/bin/env python The body text of @file foo.perl might be: @first #/usr/bin/perl @first directives are recognized only at the start of the body text of @file nodes. No text may precede @first directives. More than one @first directive may exist, like this: @first #! /usr/bin/env python @first # more comments.