Moved for merge preparation.
[core.git] / contrib / commit-trunks.sh
diff --git a/contrib/commit-trunks.sh b/contrib/commit-trunks.sh
new file mode 100755 (executable)
index 0000000..5c44dec
--- /dev/null
@@ -0,0 +1,18 @@
+#!/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