File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ install:
122
122
$(INSTALL ) -m 755 bin/$$ b $(BIN_INST_DIR ) /$$ b ; \
123
123
$(FIX ) --version $(VERSION ) --release $(RELEASE ) \
124
124
--libdir $(LIB_DIR ) --bindir $(BIN_DIR ) \
125
- --fixinterp -- fixver --fixlibdir --fixbindir \
125
+ --fixver --fixlibdir --fixbindir \
126
126
--exec $(BIN_INST_DIR ) /$$ b ; \
127
127
done
128
128
$(INSTALL ) -d -m 755 $(SCRIPT_INST_DIR )
@@ -131,7 +131,7 @@ install:
131
131
$(INSTALL ) -m 755 scripts/$$ s $(SCRIPT_INST_DIR ) /$$ s ; \
132
132
$(FIX ) --version $(VERSION ) --release $(RELEASE ) \
133
133
--libdir $(LIB_DIR ) --bindir $(BIN_DIR ) \
134
- --fixinterp -- fixver --fixlibdir \
134
+ --fixver --fixlibdir \
135
135
--fixscriptdir --scriptdir $(SCRIPT_DIR ) \
136
136
--exec $(SCRIPT_INST_DIR ) /$$ s ; \
137
137
done
@@ -141,7 +141,7 @@ install:
141
141
$(INSTALL ) -m 644 lib/$$ l $(LIB_INST_DIR ) /$$ l ; \
142
142
$(FIX ) --version $(VERSION ) --release $(RELEASE ) \
143
143
--libdir $(LIB_DIR ) --bindir $(BIN_DIR ) \
144
- --fixinterp -- fixver --fixlibdir --fixbindir \
144
+ --fixver --fixlibdir --fixbindir \
145
145
--exec $(LIB_INST_DIR ) /$$ l ; \
146
146
done
147
147
for section in 1 5 ; do \
Original file line number Diff line number Diff line change 100
100
}
101
101
102
102
if ($opt_fixinterp && defined ($path ) && $path ne " " ) {
103
- $source =~ s / ^#!.*perl.*\n / #!$path \n / ;
103
+ $source =~ s / ^#!.*perl.*\n / #!$path \n /
104
+ unless $source =~ @^# !/usr/bin/env perl$@;
104
105
}
105
106
106
107
if ($opt_fixlibdir ) {
133
134
my $path = $ENV {" LCOV_PYTHON_PATH" };
134
135
135
136
if ($opt_fixinterp && defined ($path ) && $path ne " " ) {
136
- $source =~ s / ^#!.*python.*\n / #!$path \n / ;
137
+ $source =~ s / ^#!.*python.*\n / #!$path \n /
138
+ unless $source =~ @^# !/usr/bin/env python3?$@;
137
139
}
138
140
139
141
return $source ;
You can’t perform that action at this time.
0 commit comments