mirror of
https://github.com/neovim/neovim.git
synced 2025-10-21 09:12:07 +00:00
build: rename build-related dirs
Problem: Dirs "config", "packaging", and "third-party" are all closely related but this is not obvious from the layout. This adds friction for new contributors. Solution: - rename config/ to cmake.config/ - rename test/config/ to test/cmakeconfig/ because it is used in Lua tests: require('test.cmakeconfig.paths'). - rename packaging/ to cmake.packaging/ - rename third-party/ to cmake.deps/ (parallel with .deps/)
This commit is contained in:
@@ -132,7 +132,7 @@ end
|
||||
local function write_cmakelists_line(symbol, kind, value)
|
||||
require_executable("sed")
|
||||
|
||||
local cmakelists_path = nvim_src_dir .. "/" .. "third-party/CMakeLists.txt"
|
||||
local cmakelists_path = nvim_src_dir .. "/" .. "cmake.deps/CMakeLists.txt"
|
||||
run_die({
|
||||
"sed",
|
||||
"-i",
|
||||
@@ -169,7 +169,7 @@ local function update_cmakelists(dependency, archive, comment)
|
||||
|
||||
verify_branch(dependency.name)
|
||||
|
||||
local changed_file = nvim_src_dir .. "/" .. "third-party/CMakeLists.txt"
|
||||
local changed_file = nvim_src_dir .. "/" .. "cmake.deps/CMakeLists.txt"
|
||||
|
||||
p("Updating " .. dependency.name .. " to " .. archive.url .. "\n")
|
||||
write_cmakelists_line(dependency.symbol, "URL", archive.url:gsub("/", "\\/"))
|
||||
@@ -183,7 +183,7 @@ end
|
||||
local function verify_cmakelists_committed()
|
||||
require_executable("git")
|
||||
|
||||
local cmakelists_path = nvim_src_dir .. "/" .. "third-party/CMakeLists.txt"
|
||||
local cmakelists_path = nvim_src_dir .. "/" .. "cmake.deps/CMakeLists.txt"
|
||||
run_die({ "git", "diff", "--quiet", "HEAD", "--", cmakelists_path }, cmakelists_path .. " has uncommitted changes")
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user