-#!/bin/bash
+#!/bin/bash -l
# SPDX-License-Identifier: EPL-1.0
##############################################################################
# Copyright (c) 2018 The Linux Foundation and others.
# The purpose of this script is to compare list of projects in autorelease
# are equal to the list of projects in integration/distribution.
-# Note: int/dist pom files uses templates only since Oxygen release.
-# Todo: Remove this check after Nitrogen EOL
-if [[ $STREAM =~ nitrogen ]]; then
- exit 0
-fi
-
mapfile -t PROJECTS_INT_DIST < <(xmlstarlet sel\
-N "x=http://maven.apache.org/POM/4.0.0"\
-t -m "/x:project/x:profiles/x:profile[x:activation/x:activeByDefault='true']/x:dependencies/x:dependency/x:groupId"\
if [[ $project =~ project.groupId ]] || [[ $project =~ odlparent ]]; then
continue
elif [[ $project =~ org.opendaylight ]]; then
- project=$(echo "${project/org.opendaylight./}")
- project_int_dist+=( "$(echo "${project/.//}" )" )
+ project=${project/org.opendaylight./}
+ project_int_dist+=("${project/.//}")
fi
done
-project_int_dist+=("mdsal")
project_int_dist+=("integration/distribution")
# Get a list of all the projects from releng/autorelease repo