From 1cc6efa2991634c388bc695b67d4df0be2b6e2c5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Wed, 3 Feb 2010 11:58:33 +0000 Subject: [PATCH] Added missing todo-builder.sh script / svn:executable removed from PHP scripts --- .gitattributes | 1 + todo-builder.sh | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100755 todo-builder.sh diff --git a/.gitattributes b/.gitattributes index f123e0c..d8768d5 100644 --- a/.gitattributes +++ b/.gitattributes @@ -80,3 +80,4 @@ docs/TODO -text /package.sh -text /pdepend.sh -text /rebuild_doc.sh -text +/todo-builder.sh -text diff --git a/todo-builder.sh b/todo-builder.sh new file mode 100755 index 0000000..295b6ba --- /dev/null +++ b/todo-builder.sh @@ -0,0 +1,18 @@ +#!/bin/sh + +# This script helps building the file docs/TODOs.txt and should be executed by +# developers with SVN write-access + +if ! test -e "docs"; 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 +find -type f -name "*.php" -exec grep -Hin "@TODO" {} \; | sort >> docs/TODOs.txt +echo "### ### DEPRECATION FOLLOWS: ### ###" >> docs/TODOs.txt +find -type f -name "*.php" -exec grep -Hin "@DEPRECATED" {} \; | sort >> docs/TODOs.txt +echo "$0: Done." +exit 0 -- 2.39.2