[checkmk-commits] Check_MK Git: check_mk: headrify: detect PHP sources

Mathias Kettner mk at mathias-kettner.de
Sat Aug 23 17:48:02 CEST 2014


Module: check_mk
Branch: master
Commit: 6691a3bdef2aa811fe4dd6908fc34efc350fe794
URL:    http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=6691a3bdef2aa811fe4dd6908fc34efc350fe794

Author: Mathias Kettner <mk at 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



More information about the checkmk-commits mailing list