Skip to content

Commit

Permalink
maint: print is faster than a heredoc
Browse files Browse the repository at this point in the history
Signed-off-by: Doster, Vladislav <[email protected]>
  • Loading branch information
vladdoster committed Jun 9, 2023
1 parent 476ff85 commit 06c16cd
Show file tree
Hide file tree
Showing 7 changed files with 770 additions and 136 deletions.
31 changes: 1 addition & 30 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,40 +13,11 @@ container:
docker build --tag=ghcr.io/zdharma-continuum/zinit:latest --file=docker/Dockerfile .

doc: clean
cd doc; zsh -l -d -f -i -c "zsd -v --scomm --cignore '(\#*FUNCTION:[[:space:]][\:\∞\.\+\@\-a-zA-Z0-9]*[\[]*|}[[:space:]]\#[[:space:]][\]]*)' $(DOC_SRC)"
cd doc; zsh -l -d -f -i -c "zsd -v --scomm --cignore '(\#*FUNCTION:[[:space:]][\:\∞\_\.\+\@\-a-zA-Z0-9]*[\[]*|}[[:space:]]\#[[:space:]][\]]*)' $(DOC_SRC)"

doc/container: container
./scripts/docker-run.sh --docs --debug

# Run ctags to generate Emacs and Vim's format tag file.
tags: tags/emacs tags/vim

tags/emacs: ## Build Emacs-style ctags file
@if type ctags >/dev/null 2>&1; then \
if ctags --version | grep >/dev/null 2>&1 "Universal Ctags"; then \
ctags -e -R --options=share/zsh.ctags --languages=zsh \
--pattern-length-limit=250 --maxdepth=1; \
else \
ctags -e -R --languages=sh --langmap=sh:.zsh; \
fi; \
printf "Created the Emacs \`TAGS\` file.\\n"; \
else \
printf 'Error: Please install a Ctags (e.g.: either the Exuberant or Universal %b' \
'version) utility first.\n'; \
fi

tags/vim: ## Build the Vim-style ctags file
@if type ctags >/dev/null 2>&1; then \
if ctags --version | grep >/dev/null 2>&1 "Universal Ctags"; then \
ctags --languages=zsh --maxdepth=1 --options=share/zsh.ctags --pattern-length-limit=250 -R; \
else \
ctags -R --languages=sh --langmap=sh:.zsh; \
fi; \
printf "Created the Vim's style \`tags\` file.\\n"; \
else \
printf 'Error: Please install a ctags first.\n'; \
fi

test:
zunit run

Expand Down
Empty file modified doc/zsdoc/_zinit.adoc
100644 → 100755
Empty file.
6 changes: 5 additions & 1 deletion doc/zsdoc/zinit-additional.zsh.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ Has 7 line(s). Calls functions:
|-- zinit-autoload.zsh/.zinit-clear-report-for
`-- zinit.zsh/+zi-log

Not called by script or any function (may be e.g. a hook, a Zle widget, etc.).
Called by:

zinit-autoload.zsh/.zinit-unload

==== .zinit-debug-report

Expand All @@ -66,6 +68,7 @@ ____
Has 6 line(s). Calls functions:

.zinit-debug-report
|-- zinit-autoload.zsh/.zinit-show-report
`-- zinit.zsh/+zi-log

Uses feature(s): _source_
Expand All @@ -83,6 +86,7 @@ ____
Has 7 line(s). Calls functions:

.zinit-debug-revert
|-- zinit-autoload.zsh/.zinit-unload
`-- zinit.zsh/+zi-log

Uses feature(s): _source_
Expand Down
Loading

0 comments on commit 06c16cd

Please sign in to comment.