do not change command line version for ROCM integrated build (not STANDALONE)
@@ -88,8 +88,9 @@ if [ "$1" == "install" ] ; then
fi
$SUDO rm $INSTALL_PROJECT/testfile
fi
-if [ "$AOMP_PROJECT_REPO_BRANCH" != "master" ] ; then
+
# Fix the banner to print the AOMP version string.
+if [ $AOMP_STANDALONE_BUILD == 1 ] && [ "$AOMP_PROJECT_REPO_BRANCH" != "master" ] ; then
cd $AOMP_REPOS/$AOMP_PROJECT_REPO_NAME
if [ "$AOMP_CHECK_GIT_BRANCH" == 1 ] ; then
MONO_REPO_ID=`git log | grep -m1 commit | cut -d" " -f2`
@@ -139,8 +140,8 @@ else
fi
fi
+if [ $AOMP_STANDALONE_BUILD == 1 ] && [ "$AOMP_PROJECT_REPO_BRANCH" != "master" ] ; then
cd $BUILD_DIR/build/$AOMP_PROJECT_REPO_NAME
-
if [ -f $BUILDCLFILE ] ; then
# only copy if there has been a change to the source.
diff $TEMPCLFILE $BUILDCLFILE >/dev/null
@@ -155,6 +156,7 @@ else
cp $TEMPCLFILE $BUILDCLFILE
fi
rm $TEMPCLFILE
+fi
cd $BUILD_DIR/build/$AOMP_PROJECT_REPO_NAME
