You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by bd...@apache.org on 2021/07/30 09:04:51 UTC
[sling-aggregator] branch master updated: SLING-10676 - archive
scripts which are not needed, but might serve as examples for similar cases
This is an automated email from the ASF dual-hosted git repository.
bdelacretaz 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 a558a45 SLING-10676 - archive scripts which are not needed, but might serve as examples for similar cases
a558a45 is described below
commit a558a4583ff6eacf38413977a6b9d81b176adadf
Author: Bertrand Delacretaz <bd...@apache.org>
AuthorDate: Fri Jul 30 11:03:26 2021 +0200
SLING-10676 - archive scripts which are not needed, but might serve as examples for similar cases
---
.../SLING-10676-security-md/SECURITY.md | 0
.../SLING-10676-security-md/add-security-md.sh | 0
.../SLING-10676-security-md/remove-security-md.sh | 36 ++++++++++++++++++++++
3 files changed, 36 insertions(+)
diff --git a/SECURITY.md b/archived-scripts/SLING-10676-security-md/SECURITY.md
similarity index 100%
rename from SECURITY.md
rename to archived-scripts/SLING-10676-security-md/SECURITY.md
diff --git a/add-security-md.sh b/archived-scripts/SLING-10676-security-md/add-security-md.sh
similarity index 100%
rename from add-security-md.sh
rename to archived-scripts/SLING-10676-security-md/add-security-md.sh
diff --git a/archived-scripts/SLING-10676-security-md/remove-security-md.sh b/archived-scripts/SLING-10676-security-md/remove-security-md.sh
new file mode 100755
index 0000000..a73e435
--- /dev/null
+++ b/archived-scripts/SLING-10676-security-md/remove-security-md.sh
@@ -0,0 +1,36 @@
+#!/bin/bash
+
+# Run this with
+#
+# repo forall -v -c bash <full-path-to>/aggregator/remove-security-md.sh
+#
+# to remove the SECURITY.md file from all repositories
+# that "repo" knows about.
+#
+# see https://issues.apache.org/jira/browse/SLING-10676 for more info
+export ME=$(basename $0)
+
+SEC=SECURITY.md
+echo "Removing $SEC from $(basename $PWD)"
+
+if [[ -f $ME ]]
+then
+ echo "Ignoring aggregator folder"
+ exit 0
+fi
+
+if [[ ! -f $SEC ]]
+then
+ echo "$SEC not found, nothing to do"
+ exit 0
+fi
+
+git checkout master
+git pull origin master
+git rm $SEC
+git commit -m "SLING-10676 - remove $SEC which is not needed"
+git push origin master
+
+TOWAIT=5
+echo "Waiting $TOWAIT seconds to reduce the git push load"
+sleep $TOWAIT
\ No newline at end of file