3 # run simple git commands on each repository in MRB_SOURCE
6 # Determine this command name
7 thisComFull=$(basename $0)
8 ##thisCom=${thisComFull%.*}
9 fullCom="${thisComFull%.*}"
13 echo "Usage: $fullCom <command>"
16 # Determine command options (just -h for help)
17 while getopts ":h" OPTION
21 * ) echo "ERROR: Unknown option" ; usage ; exit 1 ;;
29 echo 'ERROR: no options specified'
35 if [ -z "${MRB_SOURCE}" ]
37 echo 'ERROR: MRB_SOURCE must be defined'
38 echo ' source the appropriate localProductsXXX/setup'
42 if [ ! -r $MRB_SOURCE/CMakeLists.txt ]; then
43 echo "$MRB_SOURCE/CMakeLists.txt not found"
47 # find the directories
48 # ignore any directory that does not contain ups/product_deps
49 list=`ls $MRB_SOURCE -1`
54 if [ -r $file/ups/product_deps ]
56 pkglist="$file $pkglist"
64 echo "${REP}: git ${gitcmd}"
65 cd ${MRB_SOURCE}/${REP} || exit 1
70 echo "${REP} git ${gitcmd} failure: ${okflow}"