summaryrefslogtreecommitdiffstats
path: root/site/snippets/check-php-syntax.org
diff options
context:
space:
mode:
authorGravatar Tom Willemsen2013-01-19 03:01:33 +0100
committerGravatar Tom Willemsen2013-01-19 03:01:33 +0100
commit5695637fc1809d8777f6edcb67f1ab4e372c8bbb (patch)
tree60ae39992c091fa83856ebd0cd28c983cb994f50 /site/snippets/check-php-syntax.org
parent4a390ffcfd6ab26d3c8e6110dac995f1f193c172 (diff)
downloadorgweb-5695637fc1809d8777f6edcb67f1ab4e372c8bbb.tar.gz
orgweb-5695637fc1809d8777f6edcb67f1ab4e372c8bbb.zip
Remove snippets
This is not the way I want to present them
Diffstat (limited to 'site/snippets/check-php-syntax.org')
-rw-r--r--site/snippets/check-php-syntax.org32
1 files changed, 0 insertions, 32 deletions
diff --git a/site/snippets/check-php-syntax.org b/site/snippets/check-php-syntax.org
deleted file mode 100644
index b213113..0000000
--- a/site/snippets/check-php-syntax.org
+++ /dev/null
@@ -1,32 +0,0 @@
-#+TITLE: check-php-syntax
-#+OPTIONS: toc:nil
-
-* check-php-syntax
-
- A ~pre-commit~ script for git that checks if all php source files
- have proper syntax. This catches far from all mistakes (as most are
- not syntax related, of course), but it helps sometimes.
-
- #+BEGIN_SRC sh :tangle yes
- #!/bin/zsh
-
- result=0
-
- cd $PWD/src
- for php in **/*.php
- do
- message=$(php -l $php)
- if [ $? -ne 0 ]
- then
- echo "$message"
- result=1
- fi
- done
-
- if [ $result -eq 0 ]
- then
- echo "All checked out"
- fi
-
- exit $result
- #+END_SRC