2023-08-08 21:28:05 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2024-03-21 02:25:25 +00:00
|
|
|
# Copyright (C) 2024 Red Hat, Inc.
|
2023-08-08 21:28:05 +00:00
|
|
|
# Written by Andrew John Hughes <gnu.andrew@redhat.com>.
|
|
|
|
#
|
|
|
|
# This program is free software: you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU Affero General Public License as
|
|
|
|
# published by the Free Software Foundation, either version 3 of the
|
|
|
|
# License, or (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU Affero General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU Affero General Public License
|
|
|
|
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
TREE=${1}
|
|
|
|
|
2024-03-21 02:25:25 +00:00
|
|
|
if test "${TREE}" = ""; then
|
2023-08-08 21:28:05 +00:00
|
|
|
TREE=${PWD}
|
|
|
|
fi
|
|
|
|
|
2024-03-21 02:25:25 +00:00
|
|
|
if [ -e "${TREE}"/nashorn/.hg ] || [ -e "${TREE}"/nashorn/merge.changeset ] ; then
|
2023-08-08 21:28:05 +00:00
|
|
|
NASHORN="nashorn" ;
|
|
|
|
fi
|
|
|
|
|
2024-03-21 02:25:25 +00:00
|
|
|
if [ -e "${TREE}"/corba/.hg ] || [ -e "${TREE}"/corba/merge.changeset ] ; then
|
2023-08-08 21:28:05 +00:00
|
|
|
CORBA="corba";
|
|
|
|
fi
|
|
|
|
|
2024-03-21 02:25:25 +00:00
|
|
|
if [ -e "${TREE}"/jaxp/.hg ] || [ -e "${TREE}"/jaxp/merge.changeset ] ; then
|
2023-08-08 21:28:05 +00:00
|
|
|
JAXP="jaxp";
|
|
|
|
fi
|
|
|
|
|
2024-03-21 02:25:25 +00:00
|
|
|
if [ -e "${TREE}"/jaxws/.hg ] || [ -e "${TREE}"/jaxws/merge.changeset ] ; then
|
2023-08-08 21:28:05 +00:00
|
|
|
JAXWS="jaxws";
|
|
|
|
fi
|
|
|
|
|
2024-03-21 02:25:25 +00:00
|
|
|
if [ -e "${TREE}"/langtools/.hg ] || [ -e "${TREE}"/langtools/merge.changeset ] ; then
|
2023-08-08 21:28:05 +00:00
|
|
|
LANGTOOLS="langtools";
|
|
|
|
fi
|
|
|
|
|
2024-03-21 02:25:25 +00:00
|
|
|
if [ -e "${TREE}"/jdk/.hg ] || [ -e "${TREE}"/jdk/merge.changeset ] ; then
|
2023-08-08 21:28:05 +00:00
|
|
|
JDK="jdk";
|
|
|
|
fi
|
|
|
|
|
2024-03-21 02:25:25 +00:00
|
|
|
if [ -e "${TREE}"/hotspot/.hg ] || [ -e "${TREE}"/hotspot/merge.changeset ] ; then
|
2023-08-08 21:28:05 +00:00
|
|
|
HOTSPOT="hotspot";
|
|
|
|
fi
|
|
|
|
|
|
|
|
SUBTREES="${CORBA} ${JAXP} ${JAXWS} ${LANGTOOLS} ${NASHORN} ${JDK} ${HOTSPOT}";
|
2024-03-21 02:25:25 +00:00
|
|
|
echo "${SUBTREES}"
|
|
|
|
|
|
|
|
# Local Variables:
|
|
|
|
# compile-command: "shellcheck discover_trees.sh"
|
|
|
|
# fill-column: 80
|
|
|
|
# indent-tabs-mode: nil
|
|
|
|
# sh-basic-offset: 4
|
|
|
|
# End:
|