diff options
author | Eric Wong <e@80x24.org> | 2020-01-02 23:29:28 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2020-01-03 02:29:10 +0000 |
commit | 7a6e1292928865be110e66020932eba4522b2bf6 (patch) | |
tree | a4b5198d3254f21dde08ccf1863e0f8060c4dea2 | |
parent | 2f3a39b6a37a91a73368ac6af513b3b7a851c8ff (diff) | |
download | public-inbox-7a6e1292928865be110e66020932eba4522b2bf6.tar.gz |
Some people will place the contents of an unpacked tarball inside another directory controlled by git (e.g. a ports tree or even git-versioned home directory). "git ls-files" will succeed in those cases, so we must check for the existence of a ".git" dir, instead.
-rw-r--r-- | Makefile.PL | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile.PL b/Makefile.PL index e9e4e2ab..b8c05cf7 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -167,13 +167,14 @@ changed = \$(shell git ls-files -m) dsyn :: \$(addsuffix .syntax, \$(filter \$(changed), \$(syn_files))) check-manifest :: MANIFEST - if git ls-files >\$?.gen 2>&1; then diff -u \$? \$?.gen; fi + if test -e .git && git ls-files >\$?.gen 2>&1; then \\ + diff -u \$? \$?.gen; fi # the traditional way running per-*.t processes: check-each :: pure_all check-manifest \$(EATMYDATA) \$(PROVE) --state=save -bvw -j\$(N) -# lightly-tested way to runn tests, relies "--state=save" in check-each +# lightly-tested way to run tests, relies "--state=save" in check-each # for best performance check-run :: pure_all check-manifest \$(EATMYDATA) \$(PROVE) -bvw t/run.perl :: -j\$(N) |