#!/bin/sh
+if [ -f 'branches' ]; then
+ EXTRA_BRANCHES=""
+ for br in `grep -E "^B: .+" branches | cut -d " " -f 2`; do
+ EXTRA_BRANCHES="$EXTRA_BRANCHES -b $br"
+ done
+fi
+
ssh review.tizen.org -p 29418 gerrit ls-projects \
--format json -d -t --type all \
- -b tizen -b tizen_2.0 \
- -b tizen_2.1 -b tizen_2.2 \
- -b refs/meta/config -b master \
+ -b refs/meta/config -b master $EXTRA_BRANCHES \
-t -d > gerrit-project-info-`date +"%Y%m%d%H%M"`.json