Commit f6a0ad4
Makefile: generate Perl header from template file
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: Dan Jacques <dnj@google.com>
Thanks-to: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Thanks-to: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent 8b026ed commit f6a0ad4
File tree
3 files changed
+18
-11
lines changed- perl/header_templates
3 files changed
+18
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1987 | 1987 | | |
1988 | 1988 | | |
1989 | 1989 | | |
1990 | | - | |
1991 | | - | |
| 1990 | + | |
1992 | 1991 | | |
1993 | | - | |
| 1992 | + | |
| 1993 | + | |
1994 | 1994 | | |
1995 | | - | |
1996 | | - | |
1997 | | - | |
1998 | 1995 | | |
1999 | 1996 | | |
2000 | | - | |
2001 | | - | |
2002 | | - | |
2003 | | - | |
| 1997 | + | |
| 1998 | + | |
2004 | 1999 | | |
2005 | 2000 | | |
2006 | 2001 | | |
| |||
2014 | 2009 | | |
2015 | 2010 | | |
2016 | 2011 | | |
| 2012 | + | |
| 2013 | + | |
| 2014 | + | |
| 2015 | + | |
| 2016 | + | |
| 2017 | + | |
| 2018 | + | |
| 2019 | + | |
| 2020 | + | |
| 2021 | + | |
2017 | 2022 | | |
2018 | 2023 | | |
2019 | 2024 | | |
| |||
2793 | 2798 | | |
2794 | 2799 | | |
2795 | 2800 | | |
2796 | | - | |
| 2801 | + | |
2797 | 2802 | | |
2798 | 2803 | | |
2799 | 2804 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
0 commit comments