Skip to content

Commit b174400

Browse files
authored
inline functions (#44)
1 parent b7e8ae7 commit b174400

File tree

7 files changed

+18
-25
lines changed

7 files changed

+18
-25
lines changed

ci/clang-report.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ set -o pipefail
44

55
BUILD_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
66
source "$BUILD_DIR/ci/common/common.sh"
7-
source "$BUILD_DIR/ci/common/doc.sh"
87
source "$BUILD_DIR/ci/common/html.sh"
98
source "$BUILD_DIR/ci/common/badge.sh"
109

ci/common/doc.sh

Lines changed: 0 additions & 19 deletions
This file was deleted.

ci/doc-index.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ set -u
66
readonly BUILD_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
77

88
source "${BUILD_DIR}/ci/common/common.sh"
9-
source "${BUILD_DIR}/ci/common/doc.sh"
109

1110
generate_doc_index() {
1211
echo "Updating doc folder from file-list.txt"

ci/pvs-report.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ shopt -s dotglob
1010

1111
readonly BUILD_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
1212
source "$BUILD_DIR/ci/common/common.sh"
13-
source "$BUILD_DIR/ci/common/doc.sh"
1413
source "$BUILD_DIR/ci/common/html.sh"
1514
source "$BUILD_DIR/ci/common/badge.sh"
1615

ci/truncate-history.sh

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,23 @@ set -o pipefail
44

55
BUILD_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
66
source "$BUILD_DIR/ci/common/common.sh"
7-
source "$BUILD_DIR/ci/common/doc.sh"
7+
8+
require_environment_variable BUILD_DIR "${BASH_SOURCE[0]}" ${LINENO}
9+
10+
DOC_DIR=${DOC_DIR:-${BUILD_DIR}/build/doc}
11+
DOC_REPO=${DOC_REPO:-neovim/doc}
12+
DOC_BRANCH=${DOC_BRANCH:-gh-pages}
13+
14+
# Trim the https://github.com/neovim/doc/ repository history, els it gets huge
15+
# and slow to clone. We don't care about the history of the `gh-pages` branch.
16+
try_truncate_history() {
17+
cd "${DOC_DIR}" || { log_error "try_truncate_history: cd failed"; exit 1; }
18+
local branch=gh-pages
19+
if NEW_ROOT=$(2>/dev/null git rev-parse "$branch"~101) ; then
20+
git_truncate "$branch" "$branch"~100
21+
else
22+
log_info "try_truncate_history: branch ${branch} has too few commits, skipping truncate"
23+
fi
24+
}
825

926
try_truncate_history

ci/user-docu.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ set -e
33

44
BUILD_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
55
source ${BUILD_DIR}/ci/common/common.sh
6-
source ${BUILD_DIR}/ci/common/doc.sh
76

87
generate_user_docu() {
98
require_environment_variable BUILD_DIR "${BASH_SOURCE[0]}" ${LINENO}

ci/vimpatch-report.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ set -e
44
BUILD_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
55
export BUILD_DIR
66
source ${BUILD_DIR}/ci/common/common.sh
7-
source ${BUILD_DIR}/ci/common/doc.sh
87
source ${BUILD_DIR}/ci/common/html.sh
98

109
generate_vimpatch_report() {

0 commit comments

Comments
 (0)