]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - Makefile
Remove Delicious in project description in comments
[github/shaarli/Shaarli.git] / Makefile
index a86f9aa8bbe8bdb0b160db7cea331ba605a3eeb0..52d200908e6c3a52190f5a1345b72723de7540d8 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-# Shaarli, the personal, minimalist, super-fast, no-database delicious clone.
+# The personal, minimalist, super-fast, database free, bookmarking service.
 # Makefile for PHP code analysis & testing
 
 # Prerequisites:
@@ -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