This is an automated email from the ASF dual-hosted git repository.
jiafengzheng pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/doris-website.git
The following commit(s) were added to refs/heads/asf-site by this push:
new 4318690a2a6 add
4318690a2a6 is described below
commit 4318690a2a696231a8603e5e84bc2f7475c7e2e2
Author: jiafeng.zhang <[email protected]>
AuthorDate: Wed Aug 24 16:13:13 2022 +0800
add
---
.asf.yaml | 18 ++++++++++++++++++
remove-non-reserved-dir.sh | 39 +++++++++++++++++++++++++++++++++++++++
2 files changed, 57 insertions(+)
diff --git a/.asf.yaml b/.asf.yaml
new file mode 100644
index 00000000000..bdb953b5ffc
--- /dev/null
+++ b/.asf.yaml
@@ -0,0 +1,18 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+publish:
+ whoami: asf-site
diff --git a/remove-non-reserved-dir.sh b/remove-non-reserved-dir.sh
new file mode 100644
index 00000000000..32eeab8a5cf
--- /dev/null
+++ b/remove-non-reserved-dir.sh
@@ -0,0 +1,39 @@
+#!/bin/bash
+
+set -eo pipefail
+
+ROOT=`dirname "$0"`
+ROOT=`cd "$ROOT"; pwd`
+
+reserved=(
+build
+remove-non-reserved-dir.sh
+versions.json
+.asf.yaml
+.nojekyll
+.git
+.
+..
+)
+
+function contains() {
+ local n=$#
+ local value=${!n}
+ for ((i=1;i < $#;i++)) {
+ if [ "${!i}" == "${value}" ]; then
+ echo "y"
+ return 0
+ fi
+ }
+ echo "n"
+ return 1
+}
+
+for file in `ls -a $ROOT`
+do
+ echo "${reserved[@]}"
+ if [ $(contains "${reserved[@]}" "$file") == "n" ]; then
+ echo "delete $ROOT/$file"
+ rm -rf $ROOT/$file
+ fi
+done
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]