diff options
| author | Shohei YOSHIDA <syohex@gmail.com> | 2026-03-26 13:52:05 +0900 |
|---|---|---|
| committer | Shohei YOSHIDA <syohex@gmail.com> | 2026-03-26 13:52:05 +0900 |
| commit | a5d34d3aef722ce9e6f5f6a8c6659d54982f3c49 (patch) | |
| tree | 83c4b12efd1d88f476423b50254d193cdc19a35f /src/_cpack | |
| parent | Add cpack completion (diff) | |
| download | zsh-completions-ctest_cpack.tar zsh-completions-ctest_cpack.tar.gz zsh-completions-ctest_cpack.tar.bz2 zsh-completions-ctest_cpack.tar.lz zsh-completions-ctest_cpack.tar.xz zsh-completions-ctest_cpack.tar.zst zsh-completions-ctest_cpack.zip | |
Improve portabilityctest_cpack
Diffstat (limited to 'src/_cpack')
| -rw-r--r-- | src/_cpack | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -40,7 +40,7 @@ _cpack() { _arguments \ '-G[Override/define CPACK_GENERATOR]:generator:_cpack_generators' \ '-C[Specify the project configurations]:configuration:(Debug Release)' \ - *'-D[Set a CPack variable]:var_val' \ + '*-D[Set a CPack variable]:var_val' \ '--config[Specify the config file]:file:_files' \ '(-V --verbose)'{-V,--verbose}'[Enable verbose output]' \ '--trace[Put underlying cmake scripts in trace mode]' \ @@ -116,7 +116,7 @@ _cpack_generators() { } _cpack_help_manuals() { - local -a manuals=(${(f)"$(cpack --help-manual-list 2>/dev/null | sed 's/([0-9]\+)$//' )"}) + local -a manuals=(${(f)"$(cpack --help-manual-list 2>/dev/null | sed 's/([0-9][0-9]*)$//' )"}) _values 'manual' $manuals } |
