Commit 4d643f7
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>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>1 parent 346c957 commit 4d643f7
3 files changed
Lines changed: 18 additions & 11 deletions
| 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 | |
|---|---|---|---|
| |||
1976 | 1976 | | |
1977 | 1977 | | |
1978 | 1978 | | |
1979 | | - | |
1980 | | - | |
| 1979 | + | |
1981 | 1980 | | |
1982 | | - | |
| 1981 | + | |
| 1982 | + | |
1983 | 1983 | | |
1984 | | - | |
1985 | | - | |
1986 | | - | |
1987 | 1984 | | |
1988 | 1985 | | |
1989 | | - | |
1990 | | - | |
1991 | | - | |
1992 | | - | |
| 1986 | + | |
| 1987 | + | |
1993 | 1988 | | |
1994 | 1989 | | |
1995 | 1990 | | |
| |||
2003 | 1998 | | |
2004 | 1999 | | |
2005 | 2000 | | |
| 2001 | + | |
| 2002 | + | |
| 2003 | + | |
| 2004 | + | |
| 2005 | + | |
| 2006 | + | |
| 2007 | + | |
| 2008 | + | |
| 2009 | + | |
| 2010 | + | |
2006 | 2011 | | |
2007 | 2012 | | |
2008 | 2013 | | |
| |||
2799 | 2804 | | |
2800 | 2805 | | |
2801 | 2806 | | |
2802 | | - | |
| 2807 | + | |
2803 | 2808 | | |
2804 | 2809 | | |
2805 | 2810 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
0 commit comments