File icinga-web-missing-shebang.patch of Package icinga-web
diff -ru icinga-web-1.3.0.orig/bin/console.php icinga-web-1.3.0/bin/console.php
--- icinga-web-1.3.0.orig/bin/console.php 2011-02-14 14:27:17.000000000 +0100
+++ icinga-web-1.3.0/bin/console.php 2011-02-21 16:02:14.888249000 +0100
@@ -1,3 +1,4 @@
+#!/usr/bin/php
<?php
error_reporting(E_ALL);
@@ -31,4 +32,4 @@
// +---------------------------------------------------------------------------+
AgaviContext::getInstance('console')->getController()->dispatch();
-?>
\ No newline at end of file
+?>
diff -ru icinga-web-1.3.0.orig/bin/create-rescuescheme.sh icinga-web-1.3.0/bin/create-rescuescheme.sh
--- icinga-web-1.3.0.orig/bin/create-rescuescheme.sh 2011-02-14 14:27:17.000000000 +0100
+++ icinga-web-1.3.0/bin/create-rescuescheme.sh 2011-02-21 16:03:08.934275000 +0100
@@ -1,4 +1,3 @@
-
#!/bin/bash
DIR=$(dirname $0)
diff -ru icinga-web-1.3.0.orig/bin/getopts.php icinga-web-1.3.0/bin/getopts.php
--- icinga-web-1.3.0.orig/bin/getopts.php 2011-02-14 14:27:17.000000000 +0100
+++ icinga-web-1.3.0/bin/getopts.php 2011-02-21 16:02:52.935748000 +0100
@@ -1,3 +1,4 @@
+#!/usr/bin/php
<?php
/**********************************************************************************
* Coded by Matt Carter (M@ttCarter.net) *
@@ -232,4 +233,4 @@
$opts[$key][$value[0]] = $value[1];
}
}
-?>
\ No newline at end of file
+?>
diff -ru icinga-web-1.3.0.orig/bin/loc-create-mo.sh icinga-web-1.3.0/bin/loc-create-mo.sh
--- icinga-web-1.3.0.orig/bin/loc-create-mo.sh 2011-02-14 14:27:17.000000000 +0100
+++ icinga-web-1.3.0/bin/loc-create-mo.sh 2011-02-21 16:01:31.321206000 +0100
@@ -1,4 +1,4 @@
-#/bin/bash
+#!/bin/bash
#
# updatepo.sh - generates all language files
diff -ru icinga-web-1.3.0.orig/bin/phing icinga-web-1.3.0/bin/phing
--- icinga-web-1.3.0.orig/bin/phing 2011-02-14 14:27:17.000000000 +0100
+++ icinga-web-1.3.0/bin/phing 2011-02-21 16:02:39.542955000 +0100
@@ -1,6 +1,6 @@
-#/bin/bash
+#!/bin/bash
DIR=$(dirname $(dirname $0))
PHING=$DIR/lib/phing/bin/phing
-bash $PHING $@
\ No newline at end of file
+bash $PHING $@
diff -ru icinga-web-1.3.0.orig/etc/tests/icingaWebTesting.php icinga-web-1.3.0/etc/tests/icingaWebTesting.php
--- icinga-web-1.3.0.orig/etc/tests/icingaWebTesting.php 2011-02-14 14:27:17.000000000 +0100
+++ icinga-web-1.3.0/etc/tests/icingaWebTesting.php 2011-02-21 16:02:29.312872000 +0100
@@ -1,3 +1,4 @@
+#!/usr/bin/php
<?php
ob_start();
require_once 'PHPUnit/Framework.php';
diff -ru icinga-web-1.3.0.orig/lib/agavi/bin/agavi.bat-dist icinga-web-1.3.0/lib/agavi/bin/agavi.bat-dist
--- icinga-web-1.3.0.orig/lib/agavi/bin/agavi.bat-dist 2011-02-14 14:27:17.000000000 +0100
+++ icinga-web-1.3.0/lib/agavi/bin/agavi.bat-dist 2011-02-21 16:29:48.168265000 +0100
@@ -1,16 +1,18 @@
-@ECHO OFF
-:: This file is part of the Agavi package.
-:: Copyright (c) 2005-2010 the Agavi Project.
-::
-:: For the full copyright and license information, please view the LICENSE file
-:: that was distributed with this source code. You can also view the LICENSE
-:: file online at http://www.agavi.org/LICENSE.txt
-
-:: Set this to the path to the Agavi installation's source directory. This is
-:: the directory that contains the `agavi.php' file.
-SET AGAVI_SOURCE_DIRECTORY="@PEAR-DIR@/agavi"
-
-:: Set this to the path to a PHP binary.
-SET PHP_EXECUTABLE="@PHP-BIN@"
-
-"%PHP_EXECUTABLE%" -d memory_limit=4294967295 -f "%AGAVI_SOURCE_DIRECTORY%/build/agavi/script/agavi.php" -- --agavi-source-directory "%AGAVI_SOURCE_DIRECTORY%" %*
+#!/usr/bin/php
+@ECHO OFF
+:: This file is part of the Agavi package.
+:: Copyright (c) 2005-2010 the Agavi Project.
+::
+:: For the full copyright and license information, please view the LICENSE file
+:: that was distributed with this source code. You can also view the LICENSE
+:: file online at http://www.agavi.org/LICENSE.txt
+
+:: Set this to the path to the Agavi installation's source directory. This is
+:: the directory that contains the `agavi.php' file.
+SET AGAVI_SOURCE_DIRECTORY="@PEAR-DIR@/agavi"
+
+:: Set this to the path to a PHP binary.
+SET PHP_EXECUTABLE="@PHP-BIN@"
+
+"%PHP_EXECUTABLE%" -d memory_limit=4294967295 -f "%AGAVI_SOURCE_DIRECTORY%/build/agavi/script/agavi.php" -- --agavi-source-directory "%AGAVI_SOURCE_DIRECTORY%" %*
+