You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2019/03/20 15:00:21 UTC
[sling-tooling-scm] 12/35: SLING-3987 - move from Subversion to Git
This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-tooling-scm.git
commit ad6fe5477c5c626ae46630eea98fd61c938a310d
Author: Robert Munteanu <ro...@apache.org>
AuthorDate: Thu Sep 28 19:11:58 2017 +0000
SLING-3987 - move from Subversion to Git
- ensure directories without Maven modules are included
- tweak repository names for some special cases
git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1810032 13f79535-47bb-0310-9956-ffa450edef68
---
scripts/migrate-to-git.sh | 22 +++++++++++++++++-----
1 file changed, 17 insertions(+), 5 deletions(-)
diff --git a/scripts/migrate-to-git.sh b/scripts/migrate-to-git.sh
index 05865af..da23e35 100755
--- a/scripts/migrate-to-git.sh
+++ b/scripts/migrate-to-git.sh
@@ -69,13 +69,25 @@ while read -r module; do
module=${module#${prefix}}
done
- artifactId=$(xmllint --xpath "/*[local-name()='project']/*[local-name()='artifactId']/text()" ${module_orig}/pom.xml)
+ if [ -e ${module_orig}/pom.xml ]; then
- # add TLP prefix _if needed_
- if [[ $artifactId == "sling-" ]]; then
- repo_name=${artifactId}
+ artifactId=$(xmllint --xpath "/*[local-name()='project']/*[local-name()='artifactId']/text()" ${module_orig}/pom.xml)
+
+ # some overrides where it does not make sense to switch the artifact id
+ case $artifactId in
+ "sling-samples-builder") artifactId="sling-samples";;
+ "org.apache.sling.performance.reactor" ) artifactId="org.apache.sling.performance";;
+ "sling") artifactId="parent";;
+ esac
+
+ # add TLP prefix _if needed_
+ if [[ $artifactId == sling-* ]]; then
+ repo_name=${artifactId}
+ else
+ repo_name="sling-${artifactId}"
+ fi
else
- repo_name="sling-${artifactId}"
+ repo_name="sling-$(echo ${module} | tr '/' '-')"
fi
echo "---- Preparing to process $module_orig as $repo_name ---"