From: Roland Haeder Date: Fri, 11 Sep 2015 22:50:45 +0000 (+0200) Subject: Moved to contrib. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9b33f81cb339e73a5e4e64853bc824fc56d1b72b;p=hub.git Moved to contrib. Signed-off-by: Roland Haeder --- diff --git a/cleanup.sh b/cleanup.sh deleted file mode 100755 index 103188cd4..000000000 --- a/cleanup.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/sh - -# Cleans up all created files to start from scratch - -echo "$0: Cleaning up database ..." -rm -f db/*/*.serial* - -echo "$0: Cleaning up stacks ..." -rm -f data/stacks/*.stack* - -echo "$0: All done." -exit 0 diff --git a/clear-cache.sh b/clear-cache.sh deleted file mode 100755 index 54edf120d..000000000 --- a/clear-cache.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh - -echo "$0: Cleaning up..." -rm -f templates/images/_cache/*.png application/*/templates/images/_cache/*.png - -echo "$0: All done." diff --git a/contrib/cleanup.sh b/contrib/cleanup.sh new file mode 100755 index 000000000..103188cd4 --- /dev/null +++ b/contrib/cleanup.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +# Cleans up all created files to start from scratch + +echo "$0: Cleaning up database ..." +rm -f db/*/*.serial* + +echo "$0: Cleaning up stacks ..." +rm -f data/stacks/*.stack* + +echo "$0: All done." +exit 0 diff --git a/contrib/clear-cache.sh b/contrib/clear-cache.sh new file mode 100755 index 000000000..54edf120d --- /dev/null +++ b/contrib/clear-cache.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +echo "$0: Cleaning up..." +rm -f templates/images/_cache/*.png application/*/templates/images/_cache/*.png + +echo "$0: All done." diff --git a/contrib/find-bad-php.sh b/contrib/find-bad-php.sh new file mode 100755 index 000000000..2fdfecf45 --- /dev/null +++ b/contrib/find-bad-php.sh @@ -0,0 +1,31 @@ +#!/bin/sh + +echo "$0: Searching for PHP scripts (except 3rd party) ..." +PHP=`find -type f -name "*.php" | grep -v "third_party"` + +for SCRIPT in ${PHP}; +do + HEADER=`cat ${SCRIPT} | head -n 1 | grep -v ""` + + if [ -n "${HEADER}" ]; + then + echo "$0: Script '${SCRIPT}' has non-typical header." + fi + + if [ -n "${FOOTER}" ]; + then + echo "$0: Script '${SCRIPT}' has non-typical footer." + fi + + LINT=`php -l "${SCRIPT}" 2>&1 | grep -v "No syntax errors detected in"` + + if [ -n "${LINT}" ] + then + echo "$0: ${LINT}" + fi +done + +echo "$0: All done." +exit 0 diff --git a/contrib/package.sh b/contrib/package.sh new file mode 100755 index 000000000..c0954dd8d --- /dev/null +++ b/contrib/package.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +NAME=hub_dev_`date +%Y%m%d_%H%M%S`.zip + +sh ./clear-cache.sh + +echo -n "$0: Packaging... " +zip -9 $NAME docs/* Doxyfile *.php *.sh > /dev/null 2>&1 +echo -n "." +zip -9r $NAME application/ db/ devel/ Doxyfile inc/ templates/ tests/ > /dev/null 2>&1 +echo -n "." +zip -d $NAME docs/warn.log db/*/*.serialized > /dev/null 2>&1 +echo ". done" +echo "$0: All done." diff --git a/contrib/pdepend.sh b/contrib/pdepend.sh new file mode 100755 index 000000000..91852371d --- /dev/null +++ b/contrib/pdepend.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +if ! test -e `which pdepend`; then + echo "$0: This script needs PHP_Depend. See URL" + echo "$0: http://www.manuel-pichler.de/pages/pdepend.html for details." +fi + +pdepend --bad-documentation --ignore=db,docs,ship-simu.org \ + --jdepend-chart=test.png --overview-pyramid=pyramid.png \ + --summary-xml=summary.xml --jdepend-xml=jdepend.xml . diff --git a/contrib/rebuild_doc.sh b/contrib/rebuild_doc.sh new file mode 100755 index 000000000..697ed08af --- /dev/null +++ b/contrib/rebuild_doc.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +echo "$0: Cleaning up..." +find docs/html/ -type f -exec rm -f {} \; +rm -f docs/*.log +echo "$0: Done." + +doxygen Doxyfile diff --git a/contrib/todo-builder.sh b/contrib/todo-builder.sh new file mode 100755 index 000000000..7d75368bf --- /dev/null +++ b/contrib/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 "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 +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 diff --git a/contrib/update_year.sh b/contrib/update_year.sh new file mode 100755 index 000000000..5b353ce79 --- /dev/null +++ b/contrib/update_year.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +# Really lame ... +find application/ -type f -print0 | xargs -0 sed -i 's/2015 Hub/2016 Hub/g' diff --git a/find-bad-php.sh b/find-bad-php.sh deleted file mode 100755 index 2fdfecf45..000000000 --- a/find-bad-php.sh +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/sh - -echo "$0: Searching for PHP scripts (except 3rd party) ..." -PHP=`find -type f -name "*.php" | grep -v "third_party"` - -for SCRIPT in ${PHP}; -do - HEADER=`cat ${SCRIPT} | head -n 1 | grep -v ""` - - if [ -n "${HEADER}" ]; - then - echo "$0: Script '${SCRIPT}' has non-typical header." - fi - - if [ -n "${FOOTER}" ]; - then - echo "$0: Script '${SCRIPT}' has non-typical footer." - fi - - LINT=`php -l "${SCRIPT}" 2>&1 | grep -v "No syntax errors detected in"` - - if [ -n "${LINT}" ] - then - echo "$0: ${LINT}" - fi -done - -echo "$0: All done." -exit 0 diff --git a/package.sh b/package.sh deleted file mode 100755 index c0954dd8d..000000000 --- a/package.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/sh - -NAME=hub_dev_`date +%Y%m%d_%H%M%S`.zip - -sh ./clear-cache.sh - -echo -n "$0: Packaging... " -zip -9 $NAME docs/* Doxyfile *.php *.sh > /dev/null 2>&1 -echo -n "." -zip -9r $NAME application/ db/ devel/ Doxyfile inc/ templates/ tests/ > /dev/null 2>&1 -echo -n "." -zip -d $NAME docs/warn.log db/*/*.serialized > /dev/null 2>&1 -echo ". done" -echo "$0: All done." diff --git a/pdepend.sh b/pdepend.sh deleted file mode 100755 index 91852371d..000000000 --- a/pdepend.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh - -if ! test -e `which pdepend`; then - echo "$0: This script needs PHP_Depend. See URL" - echo "$0: http://www.manuel-pichler.de/pages/pdepend.html for details." -fi - -pdepend --bad-documentation --ignore=db,docs,ship-simu.org \ - --jdepend-chart=test.png --overview-pyramid=pyramid.png \ - --summary-xml=summary.xml --jdepend-xml=jdepend.xml . diff --git a/rebuild_doc.sh b/rebuild_doc.sh deleted file mode 100755 index 697ed08af..000000000 --- a/rebuild_doc.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/sh - -echo "$0: Cleaning up..." -find docs/html/ -type f -exec rm -f {} \; -rm -f docs/*.log -echo "$0: Done." - -doxygen Doxyfile diff --git a/todo-builder.sh b/todo-builder.sh deleted file mode 100755 index 7d75368bf..000000000 --- a/todo-builder.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/sh - -# This script helps building the file docs/TODOs.txt and should be executed by -# developers with SVN write-access - -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 -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 diff --git a/update_year.sh b/update_year.sh deleted file mode 100755 index 5b353ce79..000000000 --- a/update_year.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh - -# Really lame ... -find application/ -type f -print0 | xargs -0 sed -i 's/2015 Hub/2016 Hub/g'