X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=Makefile;h=75c54f2875d012539e1ff3be563cabacdbf77041;hb=refs%2Fheads%2Fv0.7;hp=a86f9aa8bbe8bdb0b160db7cea331ba605a3eeb0;hpb=b16e3dc5903e23ac653d0de4e3bffc3d1e529a89;p=github%2Fshaarli%2FShaarli.git diff --git a/Makefile b/Makefile index a86f9aa8..75c54f28 100644 --- a/Makefile +++ b/Makefile @@ -16,7 +16,7 @@ BIN = vendor/bin PHP_SOURCE = index.php application tests plugins PHP_COMMA_SOURCE = index.php,application,tests,plugins -all: static_analysis_summary test +all: static_analysis_summary check_permissions test ## # Concise status of the project @@ -98,6 +98,20 @@ mess_detector_summary: mess_title printf "$$warnings\t$$rule\n"; \ done; +## +# Checks source file & script permissions +## +check_permissions: + @echo "----------------------" + @echo "Check file permissions" + @echo "----------------------" + @for file in `git ls-files`; do \ + if [ -x $$file ]; then \ + errors=true; \ + echo "$${file} is executable"; \ + fi \ + done; [ -z $$errors ] || false + ## # PHPUnit # Runs unitary and functional tests