+++ /dev/null
-#!/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
+++ /dev/null
-#!/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
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
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"`
+++ /dev/null
-#!/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
+++ /dev/null
-#!/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
+++ /dev/null
-#!/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/
+++ /dev/null
-#!/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
+++ /dev/null
-#!/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" {} \;
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
+++ /dev/null
-#!/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