fix parsing of manifest to support bad lines
@@ -161,10 +161,12 @@ if [[ "$AOMP_VERSION" == "13.1" ]] || [[ $AOMP_MAJOR_VERSION -gt 13 ]] ; then
# Manifest file must be one project line per repo
cat $manifest_file | grep project > $tmpfile
if [ "$1" == "list" ] ; then
+ printf "MANIFEST FILE: %40s\n" $manifest_file
printf "%10s %12s %20s %12s %10s %31s %18s \n" "repo src" "branch" "path" "last hash" "updated" "repo name" "last author"
printf "%10s %12s %20s %12s %10s %31s %18s \n" "--------" "------" "----" "---------" "-------" "---------" "-----------"
fi
while read line ; do
+ line_is_good=1
remote=`echo $line | grep remote | cut -d"=" -f2`
for field in `echo $line` ; do
if [ -z "${field##*remote=*}" ] ; then
@@ -183,15 +185,16 @@ if [[ "$AOMP_VERSION" == "13.1" ]] || [[ $AOMP_MAJOR_VERSION -gt 13 ]] ; then
done
reponame=$path
repogitname=$name
- if [ $remote == "roc" ] ; then
+ if [ "$remote" == "roc" ] ; then
repo_web_location=$GITROC
- elif [ $remote == "roctools" ] ; then
+ elif [ "$remote" == "roctools" ] ; then
repo_web_location=$GITROCDEV
- elif [ $remote == "gerritgit" ] ; then
+ elif [ "$remote" == "gerritgit" ] ; then
repo_web_location=$GITGERRIT
else
- echo sorry remote=$remote
+ line_is_good=0
fi
+ if [ $line_is_good == 1 ] ; then
if [ "$1" == "list" ] ; then
repodirname=$AOMP_REPOS/$reponame
if [ -d $repodirname ] ; then
@@ -211,6 +214,7 @@ if [[ "$AOMP_VERSION" == "13.1" ]] || [[ $AOMP_MAJOR_VERSION -gt 13 ]] ; then
clone_or_pull
fi
fi
+ fi # end line_is_good
done <$tmpfile
rm $tmpfile
