debian8 ์ค์น ์คํจ
without-doc
๋งค๊ฐ๋ณ์๊ฐ ์ฌ๋ผ์ก์ต๋๋ค.
Already on 'master'
Your branch is up to date with 'origin/master'.
HEAD is now at f7513be Merge pull request #2373 from pragmaware/fix-bug-2364-attempt-2
==> ./autogen.sh
==> ./configure --prefix=home/ouyangsong/.linuxbrew/Cellar/universal-ctags/HEAD-f7513be
==> make
Last 15 lines from /data02/home/ouyangsong/.cache/Homebrew/Logs/universal-ctags/03.make:
rst2man [options] [<source> [<destination>]]
rst2man: error: no such option: --syntax-highlight
Makefile:5771: recipe for target 'man/tags.5' failed
make[1]: *** [man/tags.5] Error 2
Usage
=====
rst2man [options] [<source> [<destination>]]
rst2man: error: no such option: --syntax-highlight
Makefile:5769: recipe for target 'man/ctags.1' failed
make[1]: *** [man/ctags.1] Error 2
make[1]: Leaving directory '/tmp/universal-ctags-20191215-3061613-15gdbok'
Makefile:1266: recipe for target 'all' failed
make: *** [all] Error 2
rst2man์ด ๋๋ฌด ์ค๋๋์์ ์ ์์ต๋๋ค.
https://sourceforge.net/p/docutils/patches/141/ ์ฐธ์กฐ
๋๋ ์ด๊ฒ์ด ctags์ ๋น๋ ์์คํ ์ ๋ฌธ์ ๋ผ๊ณ ์๊ฐํฉ๋๋ค.
๋ง์ง๋ง docutils์ ๋ณ์นญ rst2man์ ์ต์ rst2man์ ์ค์นํ๋๋ฐ ์ฌ์ ํ ์๋ํ์ง ์์ต๋๋ค.
$ pip install --user --upgrade docutils
$ alias rst2man=//home/ouyangsong/.local/bin/rst2man.py
$ rst2man --version
rst2man.py (Docutils 0.15.2 [release], Python 2.7.9, on linux2)
alias
๋ ์
ธ์์๋ง ์๋ํฉ๋๋ค. ์ฌ๋ณผ๋ฆญ ๋งํฌ๋ฅผ ๋ง๋๋ ๊ฒ์ ์ด๋ป์ต๋๊น?
๊ธฐ๋ณธ rst2man์ /usr/bin
์ ์์ง๋ง ๋ฃจํธ๊ฐ ์์ต๋๋ค.
$PATH๋ฅผ ์ถ๊ฐํ๋ ค๊ณ ์๋ํ์ง๋ง ์ฌ์ ํ ์๋ํ์ง ์์ต๋๋ค. @k-takata ๋น์ ์ rst2man์ด ์คํ ์ค์ด๋ผ๋ ๊ฒ์ ์๋ฏธํ๋ฏ๋ก ํ์ ํ๋ก์ธ์ค์์ rst2man์ด ๋๋ฌด ์ค๋๋์์ต๋๋ค.
์ฃ์กํฉ๋๋ค. ๋ฌธ์ ๋ฅผ ์๋ชป ์ดํดํ์ต๋๋ค.
rst2man --version
๋ฐ rst2man --help | grep highlight
์ ์ถ๋ ฅ์ ์๊ณ ์ถ์ต๋๋ค.
๋ค์์ ์์ ๋๋ค.
[yamato@slave]~/var/ctags-github/man% rst2man --version
rst2man --version
rst2man (Docutils 0.14, Python 2.7.15, on linux2)
[yamato@slave]~/var/ctags-github/man% rst2man --help | grep highlight
rst2man --help | grep highlight
--syntax-highlight=<format>
๊ทํ์ rst2man์ --syntax-highlight๊ฐ ์๋ ๊ฒ ๊ฐ์ต๋๋ค.
๋ด ์ถ์ธก์ด ๋ง๋ค๋ฉด ๋ค์ ํจ์น๋ก ๋ฌธ์ ๋ฅผ ํด๊ฒฐํ ์ ์์ต๋๋ค.
diff --git a/man/Makefile b/man/Makefile
index ec43caa2..42d911d4 100644
--- a/man/Makefile
+++ b/man/Makefile
@@ -25,7 +25,9 @@ RST2PDF = rst2pdf
# rst2man had a bug about code-block:: handling.
# https://sourceforge.net/p/docutils/patches/141
-RST2MAN_FLAGS = --syntax-highlight=none
+RST2MAN_FLAGS = $(shell if $(RST2MAN) --help | grep -q -e --syntax-highlight; then \
+ echo --syntax-highlight=none; \
+ fi)
RST2HTML_FLAGS =
RST2PDF_FLAGS =
@masatake ๋ค, ๋น์ ์ ์ถ์ธก์ด ๋ง์ต๋๋ค. /usr/bin
์ rst2man์๋ ๊ตฌ๋ฌธ ๊ฐ์กฐ ํ์๊ฐ ์์ต๋๋ค.
$ rst2man --help | grep -q -e --syntax-highlight
$ /usr/bin/rst2man --version
rst2man (Docutils 0.8.1 [release], Python 2.7.9, on linux2)
์ฌ๋ณผ๋ฆญ ๋งํฌ๋ฅผ ๋ง๋ค๊ฑฐ๋ ์
๊ทธ๋ ์ด๋ํ ๋ฃจํธ๊ฐ ์์ผ๋ฏ๋ก linuxbrew install ctags์ ์ข
์์ฑ์ ์ฌ์ฉํ ๋ค์ https://github.com/universal-ctags/ctags/blob/master/docs/autotools.rst ๋ฅผ ๋ฐ๋ผ $HOME/.local
์ ์ค์นํฉ๋๋ค
๊ทธ๋ฌ๋ linuxbrew๊ฐ $HOME/.local
์์ rst2man์ ์ฌ์ฉํ์ง ์๊ณ ์ฌ๋ณผ๋ฆญ ๋งํฌ "$HOME/.local/bin/rst2man -> $HOME/.local/bin/์ ์์ฑํ ํ /usr/bin/rst2man
๋ฅผ ์ฌ์ฉํ๋ ๊ฒ์ด ์ด์ํฉ๋๋ค. rst2man.py"๋ฅผ ์ถ๊ฐํ๊ณ $PATH๋ฅผ ์ถ๊ฐํฉ๋๋ค. ๋๋ linuxbrew๊ฐ ๋ด $PATH๋ฅผ ์ฌ์ฉํ์ง ์๋ ์
ธ ํ์ ํ๋ก์ธ์ค๋ฅผ ์ฌ์ฉํ๋ค๊ณ ์๊ฐํฉ๋๋ค.
๋๋ linuxbrew๋ฅผ ๋ชจ๋ฆ
๋๋ค. ๊ทธ๋ฌ๋ ํ๋์ ์ดํดํ ์ ์์ต๋๋ค.
๋๋ ๊ทธ๋ฌํ ๋๊ตฌ์ ๊ตฌ์ถ ํ๋ก์ธ์ค๊ฐ ์ฌ์ฉ์๊ฐ ์ฌ์ฉ์ ์ ์ํ ํ๊ฒฝ์ ์์กดํด์๋ ์ ๋๋ค๊ณ ์๊ฐํฉ๋๋ค.
์ด์จ๋ #2375์์ ์ด ๋ฌธ์ ๋ฅผ ์์ ํ์ต๋๋ค. #2376 ๋ณํฉ ํ ๋ณํฉํ๊ฒ ์ต๋๋ค.
#2375๋ฅผ ๋ณํฉํ์ต๋๋ค. @songouyang , ๋ค์ ์๋ํด ์ฃผ์๊ฒ ์ต๋๊น?
@masatake ๋ค์ ์๋ํ์ง๋ง ์คํจํ์ต๋๋ค. man/makefile์์ rst2man ์ต์
์ ์์ ํ์ง๋ง makefile์์ ์ด ์ค์ ์์ด๋ฒ๋ ธ์ ์๋ ์์ต๋๋ค.
https://github.com/universal-ctags/ctags/blob/ba26b8a744ab7af3842ba219d75c5dc845ba583e/Makefile.am#L232
==> make
Last 15 lines from /data02/home/ouyangsong/.cache/Homebrew/Logs/universal-ctags/03.make:
rst2man [options] [<source> [<destination>]]
rst2man: error: no such option: --syntax-highlight
Makefile:5773: recipe for target 'man/ctags-incompatibilities.7' failed
make[1]: *** [man/ctags-incompatibilities.7] Error 2
Usage
=====
rst2man [options] [<source> [<destination>]]
rst2man: error: no such option: --syntax-highlight
Makefile:5773: recipe for target 'man/ctags-optlib.7' failed
make[1]: *** [man/ctags-optlib.7] Error 2
make[1]: Leaving directory '/tmp/universal-ctags-20191217-3629840-z9svqb'
Makefile:1266: recipe for target 'all' failed
make: *** [all] Error 2
If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/universal-ctags/homebrew-universal-ctags/issues
5768 .1.rst.1:
5769 $(rst2man_verbose)$(RST2MAN) $(RST2MAN_OPTIONS) $< $@
5770 .5.rst.5:
5771 $(rst2man_verbose)$(RST2MAN) $(RST2MAN_OPTIONS) $< $@
5772 .7.rst.7:
5773 $(rst2man_verbose)$(RST2MAN) $(RST2MAN_OPTIONS) $< $@
1264 RST2MAN_OPTIONS = --syntax-highlight=none
1265 all: $(BUILT_SOURCES) config.h
1266 $(MAKE) $(AM_MAKEFLAGS) all-am
๊ฐ์ฌ ํด์!
ํ ๋ฆฌํ์คํธ๋ฅผ ํ๋ ๋ ํ๊ฒ ์ต๋๋ค.
๋ค์ ์๋ํด ์ฃผ์๊ฒ ์ด์?
@masatake ์ด์ ๊ด์ฐฎ์์ ๊ฐ์ฌํฉ๋๋ค๐
ํ ์คํ (๋ฐ ์ค์ํ ์ ์)์ ๊ฐ์ฌ๋๋ฆฝ๋๋ค.
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
๋๋ linuxbrew๋ฅผ ๋ชจ๋ฆ ๋๋ค. ๊ทธ๋ฌ๋ ํ๋์ ์ดํดํ ์ ์์ต๋๋ค.
๋๋ ๊ทธ๋ฌํ ๋๊ตฌ์ ๊ตฌ์ถ ํ๋ก์ธ์ค๊ฐ ์ฌ์ฉ์๊ฐ ์ฌ์ฉ์ ์ ์ํ ํ๊ฒฝ์ ์์กดํด์๋ ์ ๋๋ค๊ณ ์๊ฐํฉ๋๋ค.
์ด์จ๋ #2375์์ ์ด ๋ฌธ์ ๋ฅผ ์์ ํ์ต๋๋ค. #2376 ๋ณํฉ ํ ๋ณํฉํ๊ฒ ์ต๋๋ค.