File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,16 @@ package Git::I18N;
2
2
use 5.008;
3
3
use strict;
4
4
use warnings;
5
- use Exporter ' import' ;
5
+ BEGIN {
6
+ require Exporter;
7
+ if ($] < 5.008003) {
8
+ *import = \&Exporter::import ;
9
+ } else {
10
+ # Exporter 5.57 which supports this invocation was
11
+ # released with perl 5.8.3
12
+ Exporter-> import (' import' );
13
+ }
14
+ }
6
15
7
16
our @EXPORT = qw( __) ;
8
17
our @EXPORT_OK = @EXPORT ;
Original file line number Diff line number Diff line change @@ -23,15 +23,18 @@ clean:
23
23
ifdef NO_PERL_MAKEMAKER
24
24
instdir_SQ = $(subst ','\'',$(prefix ) /lib)
25
25
$(makfile ) : ../GIT-CFLAGS Makefile
26
- echo all: private-Error.pm Git.pm > $@
27
- echo ' mkdir -p blib/lib' >> $@
26
+ echo all: private-Error.pm Git.pm Git/I18N.pm > $@
27
+ echo ' mkdir -p blib/lib/Git ' >> $@
28
28
echo ' $(RM) blib/lib/Git.pm; cp Git.pm blib/lib/' >> $@
29
+ echo ' $(RM) blib/lib/Git/I18N.pm; cp Git/I18N.pm blib/lib/Git/' >> $@
29
30
echo ' $(RM) blib/lib/Error.pm' >> $@
30
31
' $(PERL_PATH_SQ)' -MError -e ' exit($$Error::VERSION < 0.15009)' || \
31
32
echo ' cp private-Error.pm blib/lib/Error.pm' >> $@
32
33
echo install: >> $@
33
34
echo ' mkdir -p "$$(DESTDIR)$(instdir_SQ)"' >> $@
35
+ echo ' mkdir -p "$$(DESTDIR)$(instdir_SQ)/Git"' >> $@
34
36
echo ' $(RM) "$$(DESTDIR)$(instdir_SQ)/Git.pm"; cp Git.pm "$$(DESTDIR)$(instdir_SQ)"' >> $@
37
+ echo ' $(RM) "$$(DESTDIR)$(instdir_SQ)/Git/I18N.pm"; cp Git/I18N.pm "$$(DESTDIR)$(instdir_SQ)/Git"' >> $@
35
38
echo ' $(RM) "$$(DESTDIR)$(instdir_SQ)/Error.pm"' >> $@
36
39
' $(PERL_PATH_SQ)' -MError -e ' exit($$Error::VERSION < 0.15009)' || \
37
40
echo ' cp private-Error.pm "$$(DESTDIR)$(instdir_SQ)/Error.pm"' >> $@
You can’t perform that action at this time.
0 commit comments