Global fix/add/update:
authorRoland Häder <roland@mxchange.org>
Wed, 2 Dec 2009 20:10:34 +0000 (20:10 +0000)
committerRoland Häder <roland@mxchange.org>
Wed, 2 Dec 2009 20:10:34 +0000 (20:10 +0000)
- index.php updated in all projects from ship-simu
- Missing todo-builder.sh added
- TODOs.txt updated in all projects
- Missing svn:executable added

.gitattributes
clear-cache.sh [changed mode: 0644->0755]
index.php
package.sh [changed mode: 0644->0755]
pdepend.sh [changed mode: 0644->0755]
todo-builder.sh [new file with mode: 0755]

index 08abd88..576f279 100644 (file)
@@ -30,3 +30,4 @@ docs/THANKS -text
 /package.sh -text
 /pdepend.sh -text
 /rebuild_doc.sh -text
+/todo-builder.sh -text
old mode 100644 (file)
new mode 100755 (executable)
index f2e1c4c..979aa45 100644 (file)
--- a/index.php
+++ b/index.php
@@ -62,13 +62,13 @@ final class ApplicationEntryPoint {
         */
        public static function app_die ($message = '', $code = false, $extraData = '', $silentMode = false) {
                // Is this method already called?
-               if (defined('EMERGENCY_EXIT_CALLED')) {
+               if (isset($GLOBALS['app_die_called'])) {
                        // Then output the text directly
                        die($message);
                } // END - if
 
                // This method shall not be called twice
-               define('EMERGENCY_EXIT_CALLED', true);
+               $GLOBALS['app_die_called'] = true;
 
                // Is a message set?
                if (empty($message)) {
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
diff --git a/todo-builder.sh b/todo-builder.sh
new file mode 100755 (executable)
index 0000000..360b888
--- /dev/null
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+# This script helps building the file docs/TODOs.txt and should be executed by
+# developers with SVN write-access
+
+TYPES="php ctp xml"
+
+if ! test -e "index.php"; then
+  echo "$0: Please execute this script from root directory."
+  exit 1
+fi
+
+echo "$0: Generating TODOs.txt..."
+echo "### WARNING: THIS FILE IS AUTO-GENERATED BY $0 ###" > docs/TODOs.txt
+echo "### DO NOT EDIT THIS FILE. ###" >> docs/TODOs.txt
+for type in $TYPES; do
+       find -type f -name "*.$type" -exec grep -Hin "@TODO" {} \; | sort >> docs/TODOs.txt
+done
+echo "### ### DEPRECATION FOLLOWS: ### ###" >> docs/TODOs.txt
+for type in $TYPES; do
+       find -type f -name "*.$type" -exec grep -Hin "@DEPRECATED" {} \; | sort >> docs/TODOs.txt
+done
+echo "$0: Done."
+exit 0