This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to branch feat/pom-scm-script
in repository https://gitbox.apache.org/repos/asf/sling-aggregator.git

commit 0f68bc813a84a5af456b0babefa7274e7ba92435
Author: Robert Munteanu <[email protected]>
AuthorDate: Thu Oct 12 21:18:54 2023 +0200

    SLING-12094 - Use GitHub for the Maven scm.url value
    
    Add basic script for migrating the scm.url value to use GitHub.
---
 scripts/update-pom-scm.sh | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/scripts/update-pom-scm.sh b/scripts/update-pom-scm.sh
new file mode 100755
index 0000000..ec6c54f
--- /dev/null
+++ b/scripts/update-pom-scm.sh
@@ -0,0 +1,9 @@
+#!/bin/bash -eu
+
+if [ ! -f pom.xml ]; then
+    echo "No pom.xml, skipping"
+    exit 0
+fi
+
+origin=$(git remote get-url origin)
+sed -i 
"s#<url>https://gitbox.apache.org/repos/asf.*</url>#<url>${origin}</url>#" 
pom.xml

Reply via email to