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-aggregator.git
The following commit(s) were added to refs/heads/master by this push:
new 082d702 SLING-12094 - Use GitHub for the Maven scm.url value (#11)
082d702 is described below
commit 082d702f679722a2d1a3e3419f5f614e5af8a784
Author: Robert Munteanu <[email protected]>
AuthorDate: Thu Oct 12 21:20:15 2023 +0200
SLING-12094 - Use GitHub for the Maven scm.url value (#11)
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