5c44decb10a9d5577618f56db985c91c334065c8
[core.git] / commit-trunks.sh
1 #!/bin/sh
2
3 if test "$1" = ""; then
4         echo "Usage: $0 \"<commit-comment>\""
5         exit 1
6 fi
7
8 echo "$0: Reading projects..."
9 LIST=`find */trunk/application/*/*.php | cut -d "/" -f 1-2 | sort --unique`
10
11 for repos in ${LIST}; do
12         echo "$0: Committing in ${repos} ..."
13         cd "${repos}" || exit 255
14         svn commit -m "$1"
15         cd -
16 done
17
18 exit 0