Skip to content

Commit

Permalink
remove unnecesary variable MAKE_CMD (#43)
Browse files Browse the repository at this point in the history
ninja should always be used
  • Loading branch information
dundargoc authored Oct 8, 2023
1 parent c17fa8b commit b7e8ae7
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 12 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/reports.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,6 @@ jobs:
git commit -m 'doc index: Automatic update' || true
- name: Update user documentation
env:
MAKE_CMD: ninja
run: |
${GITHUB_WORKSPACE}/ci/user-docu.sh
cd "$DOC_DIR"
Expand Down
4 changes: 2 additions & 2 deletions ci/clang-report.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ generate_clang_report() {
mkdir -p build/clang-report

# Compile deps
${MAKE_CMD} deps
make deps

# Generate report
if "${SCAN_BUILD:-scan-build}" \
Expand All @@ -23,7 +23,7 @@ generate_clang_report() {
--exclude "src/cjson/" \
--exclude "src/xdiff/" \
-o build/clang-report \
${MAKE_CMD} \
make \
| tee ${BUILD_DIR}/scan-build.out
then
scan_build_result=no-warnings
Expand Down
1 change: 0 additions & 1 deletion ci/common/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ log_error() {
require_environment_variable BUILD_DIR "${BASH_SOURCE[0]}" ${LINENO}

CI_TARGET=${CI_TARGET:-$(basename "${0%.sh}")}
MAKE_CMD=${MAKE_CMD:-"make -j2"}
GIT_NAME=${GIT_NAME:-marvim}
GIT_EMAIL=${GIT_EMAIL:-marvim@users.noreply.github.com}

Expand Down
8 changes: 1 addition & 7 deletions ci/user-docu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,11 @@ source ${BUILD_DIR}/ci/common/doc.sh

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

# Generate CMake files
cd ${NEOVIM_DIR}
make cmake
# Build Neovim (which also creates help tags).
cd build
${MAKE_CMD}
make

# Generate HTML from :help docs.
cd ..
VIMRUNTIME=runtime/ ./build/bin/nvim -V1 -es --clean \
+"lua require('scripts.gen_help_html').gen('./build/runtime/doc/', '${DOC_DIR}/user', nil, '${NEOVIM_COMMIT}')" +0cq
}
Expand Down

0 comments on commit b7e8ae7

Please sign in to comment.