Module: check_mk
Branch: master
Commit: 6691a3bdef2aa811fe4dd6908fc34efc350fe794
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=6691a3bdef2aa8…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Sat Aug 23 17:45:52 2014 +0200
headrify: detect PHP sources
---
doc/helpers/headrify | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/doc/helpers/headrify b/doc/helpers/headrify
index 965ac1e..bb1de73 100755
--- a/doc/helpers/headrify
+++ b/doc/helpers/headrify
@@ -58,6 +58,9 @@ headrify ()
if [ "${headline:0:9}" = "#!/bin/sh" ] ; then
comment="# "
bangpath="#!/bin/sh"
+ elif [ "${headline:0:14}" = "#!/usr/bin/ksh" ] ; then
+ comment="# "
+ bangpath="#!/usr/bin/ksh"
elif [ "${headline:0:16}" = "#!/usr/bin/ksh93" ] ; then
comment="# "
bangpath="#!/usr/bin/ksh93"
@@ -67,6 +70,9 @@ headrify ()
elif [ "${headline:0:15}" = "#!/usr/bin/bash" ] ; then
comment="# "
bangpath="#!/usr/bin/bash"
+ elif [ "${headline:0:14}" = "#!/usr/bin/php" ] ; then
+ comment="# "
+ bangpath="#!/usr/bin/pnp"
else
bangpath=""
case "${file##*/}" in