Commit 499c293
Makefile: allow building without perl
For systems with a missing or broken perl, it is nicer to
explicitly say "we don't want perl" because:
1. The Makefile knows not to bother with Perl-ish things
like Git.pm.
2. We can print a more user-friendly error message
than "foo is not a git command" or whatever the broken
perl might barf
3. Test scripts that require perl can mark themselves and
such and be skipped
This patch implements parts (1) and (2). The perl/
subdirectory is skipped entirely, gitweb is not built, and
any git commands which rely on perl will print a
human-readable message and exit with an error code.
This patch is based on one from Robin H. Johnson.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent 6da14ee commit 499c293
2 files changed
+29
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| 148 | + | |
| 149 | + | |
148 | 150 | | |
149 | 151 | | |
150 | 152 | | |
| |||
353 | 355 | | |
354 | 356 | | |
355 | 357 | | |
356 | | - | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
357 | 362 | | |
358 | 363 | | |
359 | 364 | | |
| |||
1104 | 1109 | | |
1105 | 1110 | | |
1106 | 1111 | | |
| 1112 | + | |
| 1113 | + | |
| 1114 | + | |
| 1115 | + | |
1107 | 1116 | | |
1108 | 1117 | | |
1109 | 1118 | | |
| |||
1178 | 1187 | | |
1179 | 1188 | | |
1180 | 1189 | | |
| 1190 | + | |
1181 | 1191 | | |
| 1192 | + | |
1182 | 1193 | | |
1183 | 1194 | | |
1184 | 1195 | | |
| |||
1226 | 1237 | | |
1227 | 1238 | | |
1228 | 1239 | | |
| 1240 | + | |
1229 | 1241 | | |
1230 | 1242 | | |
1231 | 1243 | | |
| |||
1285 | 1297 | | |
1286 | 1298 | | |
1287 | 1299 | | |
| 1300 | + | |
| 1301 | + | |
| 1302 | + | |
| 1303 | + | |
| 1304 | + | |
| 1305 | + | |
| 1306 | + | |
| 1307 | + | |
| 1308 | + | |
1288 | 1309 | | |
1289 | 1310 | | |
1290 | 1311 | | |
| |||
1603 | 1624 | | |
1604 | 1625 | | |
1605 | 1626 | | |
1606 | | - | |
1607 | 1627 | | |
| 1628 | + | |
| 1629 | + | |
1608 | 1630 | | |
| 1631 | + | |
1609 | 1632 | | |
1610 | 1633 | | |
1611 | 1634 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
0 commit comments