Skip to content
  • Dan Jacques's avatar
    Makefile: generate Perl header from template file · f6a0ad4b
    Dan Jacques authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    Currently, the generated Perl script headers are emitted by commands in
    the Makefile. This mechanism restricts options to introduce alternative
    header content, needed by Perl runtime prefix support, and obscures the
    origin of the Perl script header.
    
    Change the Makefile to generate a header by processing a template file and
    move the header content into the "perl/" subdirectory. The generated
    header content will now be stored in the "GIT-PERL-HEADER" file. This
    allows the content of the Perl header to be controlled by changing the path
    of the template in the Makefile.
    
    Signed-off-by: default avatarDan Jacques <dnj@google.com>
    Thanks-to: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
    Thanks-to: Johannes Schindelin <johannes.schindelin@gmx.de>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    f6a0ad4b