mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-04-29 08:41:15 -03:00
Commit0709e4be8b(Use standalone code paths by default, 2025-10-26) mainly wanted to embed internal functions to unbreak upgrade scenarios. Embedding man pages in CMake has small-ish disadvantages: 1. extra space usage 2. less discoverability 3. a "cyclic" dependency: 1. "sphinx-docs" depends on "fish_indent" 2. "fish_indent" via "crates/build-man-pages" depends on "doc_src/". So every "touch doc_src/foo.rst && ninja -Cbuild sphinx-docs" re-builds fish, just to re-run sphinx-build. The significant one is number 3. It can be worked around by running sphinx-build with stale "fish_indent" but I don't think we want to do that. Let's backtrack a little by stopping embedding man pages in CMake builds; use the on-disk man pages (which we still install). The remaining "regression" from0709e4be8bis that "ninja -Cbuild fish" needs to rebuild whenever anything in "share/" changes. I don't know if that's also annoying? Since man pages for "build/fish" are not in share/, expose the exact path as $__fish_man_dir.
19 lines
881 B
Fish
19 lines
881 B
Fish
# RUN: %fish -d config | grep -v ^Debug.enabled.for.category
|
|
# REQUIRES: %fish -d config -c '' 2>| grep 'Running out of build directory'
|
|
|
|
# CHECKERR: config: executable path: {{.*}}/fish
|
|
# CHECKERR: config: Running out of build directory, using paths relative to $CARGO_MANIFEST_DIR ({{.*}})
|
|
|
|
# NOTE: When our executable is located outside the workspace, this is "/etc".
|
|
# CHECKERR: config: paths.sysconf: {{.+}}/etc
|
|
|
|
# CHECKERR: config: paths.bin: {{.*}}
|
|
|
|
# NOTE: When our executable is located outside the build directory, these are different.
|
|
# CHECKERR: config: paths.data: {{.*}}/share
|
|
# CHECKERR: config: paths.man: {{.*/user_doc/man|\|not found\|}}
|
|
# CHECKERR: config: paths.doc: {{.*/user_doc/html|\|not found\|}}
|
|
|
|
# CHECKERR: config: sourcing {{.+}}/etc/config.fish
|
|
# CHECKERR: config: not sourcing {{.*}}/xdg_config_home/fish/config.fish (not readable or does not exist)
|