Cleanup:
authorRoland Häder <roland@mxchange.org>
Thu, 9 Mar 2017 09:44:30 +0000 (10:44 +0100)
committerRoland Häder <roland@mxchange.org>
Thu, 9 Mar 2017 09:44:30 +0000 (10:44 +0100)
- removed old scripts which were used in SVN times
- some may become useful, like remote-deprecated.sh and find-bad-php.sh
- the later one now searches for discouraged ?> closing tag
- the first one can now be used with GIT to remove deprecated files

Signed-off-by: Roland Häder <roland@mxchange.org>
contrib/commit-rest.sh [deleted file]
contrib/commit-trunks.sh [deleted file]
contrib/find-bad-php.sh
contrib/lint.sh [deleted file]
contrib/patch.sh [deleted file]
contrib/patch_core.sh [deleted file]
contrib/patch_i.sh [deleted file]
contrib/prop-set.sh [deleted file]
contrib/remove-deprecated.sh
contrib/todo-all.sh [deleted file]

diff --git a/contrib/commit-rest.sh b/contrib/commit-rest.sh
deleted file mode 100755 (executable)
index 423f9ad..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/bin/sh
-
-if test "$1" = ""; then
-       echo "Usage: $0 \"<commit-comment>\" [file/directory]"
-       exit 1
-fi
-
-echo "$0: Reading projects..."
-if test "$2" = ""; then
-       LIST=`svn status */ | grep "  " | grep -v "X  " | cut -d " " -f 8 | cut -d "/" -f 1 | sort --unique`
-else
-       LIST=`svn status */*/"$2" | grep "/" | grep -v "X " | cut -d " " -f 8 | cut -d "/" -f 1-2 | sort --unique`
-fi
-
-for repos in ${LIST}; do
-       echo "$0: Committing in ${repos} ..."
-       cd "${repos}" || exit 255
-       svn commit -m "$1" "$2"
-       cd -
-done
-
-exit 0
diff --git a/contrib/commit-trunks.sh b/contrib/commit-trunks.sh
deleted file mode 100755 (executable)
index 5c44dec..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/bin/sh
-
-if test "$1" = ""; then
-       echo "Usage: $0 \"<commit-comment>\""
-       exit 1
-fi
-
-echo "$0: Reading projects..."
-LIST=`find */trunk/application/*/*.php | cut -d "/" -f 1-2 | sort --unique`
-
-for repos in ${LIST}; do
-       echo "$0: Committing in ${repos} ..."
-       cd "${repos}" || exit 255
-       svn commit -m "$1"
-       cd -
-done
-
-exit 0
index 85af1b24555a99968d6d8dee410429de5626508f..79cfd1dc31fe1795f4173989dca33cbc718cad29 100755 (executable)
@@ -7,7 +7,7 @@ for SCRIPT in ${PHP};
 do
        HEADER=`cat ${SCRIPT} | head -n 1 | grep -v "<?"`
 
-       FOOTER=`cat ${SCRIPT} | tail -n 1 | grep -v "?>"`
+       FOOTER=`cat ${SCRIPT} | tail -n 1 | grep "?>"`
 
        if [ -n "${HEADER}" ];
        then
@@ -16,7 +16,7 @@ do
 
        if [ -n "${FOOTER}" ];
        then
-               echo "$0: Script '${SCRIPT}' has non-typical footer."
+               echo "$0: Script '${SCRIPT}' has discouraged footer."
        fi
 
        LINT=`php -l "${SCRIPT}" 2>&1 | grep -v "Constant FUSE_EDEADLK already defined in Unknown on line 0" | grep -v "No syntax errors detected in"`
diff --git a/contrib/lint.sh b/contrib/lint.sh
deleted file mode 100755 (executable)
index 00c4a2c..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/bin/sh
-
-echo "$0: Analysing PHP scripts for syntax errors (lint) ..."
-LINT=`find -type f -name "*.php" -exec php -l -f {} 2>&1 \; | grep -v "No syntax errors detected in"`
-
-if test "${LINT}" != ""; then
-       echo "${LINT}"
-else
-       echo "$0: No syntax errors found."
-fi
diff --git a/contrib/patch.sh b/contrib/patch.sh
deleted file mode 100755 (executable)
index 5dbfe7d..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/bin/sh
-
-if test "$1" = ""; then
-       echo "Usage: $0 <patch>"
-       exit
-fi
-
-LIST=`find ??*/trunk/ -maxdepth 0 -type d | sort --unique`
-
-for entry in ${LIST}; do
-       echo "$0: Patching in ${entry} ..."
-       cd "${entry}"
-       patch -p0 < "../../$1"
-       cd -
-done
diff --git a/contrib/patch_core.sh b/contrib/patch_core.sh
deleted file mode 100755 (executable)
index 6d93d1f..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-#!/bin/sh
-
-svn diff inc/ > ../../core/trunk/i || exit 1
-cd ../../core/trunk/ || exit 1
-svn up || exit 1
-sh ../contrib/patch_i.sh "$1" || exit 1
-cd -
-svn up inc/
diff --git a/contrib/patch_i.sh b/contrib/patch_i.sh
deleted file mode 100755 (executable)
index 6690ae0..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/sh
-
-patch -p0 < i || exit 10
-if test "$1" = ""; then
-       svn commit || exit 10
-else
-       svn commit -m "$1" || exit 10
-fi
-rm i
diff --git a/contrib/prop-set.sh b/contrib/prop-set.sh
deleted file mode 100755 (executable)
index 1df2b4c..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/bin/sh
-
-find -type f -name "*.php" -exec svn propset svn:keywords "Author Id Revision HeadURL Date Tag" {} \;
-find -type f -name "*-" -exec svn propset svn:keywords "Author Id Revision HeadURL Date Tag" {} \;
-find -type f -name "*_" -exec svn propset svn:keywords "Author Id Revision HeadURL Date Tag" {} \;
-find -type f -name "_*.php" -exec svn propset svn:keywords "Author Id Revision HeadURL Date Tag" {} \;
-find -type f -name "*.php" -exec svn propset svn:mime-type "text/plain" {} \;
-find -type f -name "*-" -exec svn propset svn:mime-type "text/plain" {} \;
-find -type f -name "*_" -exec svn propset svn:mime-type "text/plain" {} \;
-find -type f -name "_*.php" -exec svn propset svn:mime-type "text/plain" {} \;
-find -type f -name "*.jpg" -exec svn propset svn:mime-type "image/jpeg" {} \;
-find -type f -name "*.png" -exec svn propset svn:mime-type "image/png" {} \;
-find -type f -name "*.gif" -exec svn propset svn:mime-type "image/gif" {} \;
-find -type f -name "*.txt" -exec svn propset svn:mime-type "text/plain" {} \;
-find -type f -name "*.tpl" -exec svn propset svn:mime-type "text/plain" {} \;
index cd8d9f058ea7f2886b39c7824e599a296565fea1..d075762bad21cc5308d19dea86629bf78a1c14b7 100755 (executable)
@@ -11,6 +11,6 @@ LIST1=`find -type f -name "*.php" -size 24c -exec grep -H "@DEPRECATED" {} \;`
 LIST="${LIST1} ${LIST2}"
 
 if test "${LIST}" != " "; then
-       echo "${LIST}" | cut -d ":" -f 1 | xargs svn --force del
+       echo "${LIST}" | cut -d ":" -f 1 | xargs git rm --force
        sh ./todo-builder.sh
 fi
diff --git a/contrib/todo-all.sh b/contrib/todo-all.sh
deleted file mode 100755 (executable)
index f3a806a..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/sh
-
-echo "$0: Reading projects..."
-LIST=`find -maxdepth 1 -type d -name "??*" | sort --unique`
-SVN_DIRS="branches tags trunk"
-
-for repos in $LIST; do
-       for svn_dir in $SVN_DIRS; do
-               if test -e "$repos/$svn_dir/todo-builder.sh"; then
-                       echo "$0: Updating TODOs.txt in $repos/$svn_dir"
-                       cd "$repos/$svn_dir/"
-                       sh ./todo-builder.sh
-                       svn add docs/TODOs.txt >/dev/null 2>&1
-                       cd - >/dev/null
-               fi
-       done
-done