From 023330e2faae5a0f6c02d85c42ba6c5e0e336eac Mon Sep 17 00:00:00 2001 From: inao Date: Wed, 5 Mar 2014 12:20:16 +0900 Subject: [PATCH 1/4] =?UTF-8?q?=E8=A6=8B=E5=87=BA=E3=81=97=E5=8C=96?= =?UTF-8?q?=E3=81=97=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index e8dbaf9..0e8c7e3 100644 --- a/README.md +++ b/README.md @@ -18,20 +18,19 @@ markdown2inao.pl 改め md2inao.pl のこれまでについては https://gist.g ### CUI版 -CPANからインストール +#### CPANからインストールして使う場合 % cpanm Text::Md2Inao % md2inao.pl your_markdown.md > path/to/output.txt - -リポジトリからインストール +#### リポジトリからインストールして使う場合 % cpanm Carton % carton % carton exec -- perl bin/md2inao.pl your_markdown.md > path/to/output.txt -cpanmは以下のコマンドでインストールできます +##### cpanmのインストール % curl -L http://cpanmin.us > ~/bin/cpanm && chmod +x ~/cpanm ### Web版 From b1b4976807fa690d11349564ce4f497dee6a8954 Mon Sep 17 00:00:00 2001 From: inao Date: Wed, 5 Mar 2014 12:20:51 +0900 Subject: [PATCH 2/4] =?UTF-8?q?Perl=EF=BC=88Perlbrew=EF=BC=89=E3=81=AE?= =?UTF-8?q?=E3=82=A4=E3=83=B3=E3=82=B9=E3=83=88=E3=83=BC=E3=83=AB=E6=96=B9?= =?UTF-8?q?=E6=B3=95=E3=82=92=E8=BF=BD=E8=A8=98=E3=81=97=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index 0e8c7e3..765b15a 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,22 @@ markdown2inao.pl 改め md2inao.pl のこれまでについては https://gist.g % carton % carton exec -- perl bin/md2inao.pl your_markdown.md > path/to/output.txt +#### 参考:Perl環境の構築 + +##### Perlのインストール(Perlbrew) + + % curl -kL http://install.perlbrew.pl | bash + % perlbrew init + % perlbrew install 5.18.2(使いたいバージョン) + % perlbrew switch 5.18.2 + +zshで使う場合は、上記`perlbrew init`の前に、`~/.zshrc`に以下の1行を追記し、 + + source $HOME/perl5/perlbrew/etc/bashrc + +以下のコマンドを実行してください。 + + % source ~/.zshrc ##### cpanmのインストール % curl -L http://cpanmin.us > ~/bin/cpanm && chmod +x ~/cpanm From 98ffb947f3d80c69e8c2b39c79b83515294478ff Mon Sep 17 00:00:00 2001 From: inao Date: Wed, 5 Mar 2014 12:21:13 +0900 Subject: [PATCH 3/4] =?UTF-8?q?Perlbrew=E3=81=AE=E5=A0=B4=E5=90=88?= =?UTF-8?q?=E3=81=AEcpanm=E3=81=AE=E3=82=A4=E3=83=B3=E3=82=B9=E3=83=88?= =?UTF-8?q?=E3=83=BC=E3=83=AB=E6=96=B9=E6=B3=95=E3=82=92=E8=BF=BD=E8=A8=98?= =?UTF-8?q?=E3=81=97=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 765b15a..1fa29ba 100644 --- a/README.md +++ b/README.md @@ -47,6 +47,10 @@ zshで使う場合は、上記`perlbrew init`の前に、`~/.zshrc`に以下の1 % source ~/.zshrc ##### cpanmのインストール + + ・Perlbrewなどローカルperlで使う場合 + % curl -L http://cpanmin.us | perl - App::cpanminus + ・★○○の場合★ % curl -L http://cpanmin.us > ~/bin/cpanm && chmod +x ~/cpanm ### Web版 From 58c0c2c4bad6910c9dfe0eb1fdddd3d8f50c5bb8 Mon Sep 17 00:00:00 2001 From: inao Date: Wed, 5 Mar 2014 12:21:28 +0900 Subject: [PATCH 4/4] =?UTF-8?q?=E5=8F=82=E8=80=83=E6=96=87=E7=8C=AE?= =?UTF-8?q?=E3=82=92=E8=BF=BD=E8=A8=98=E3=81=97=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 1fa29ba..97cce42 100644 --- a/README.md +++ b/README.md @@ -53,6 +53,10 @@ zshで使う場合は、上記`perlbrew init`の前に、`~/.zshrc`に以下の1 ・★○○の場合★ % curl -L http://cpanmin.us > ~/bin/cpanm && chmod +x ~/cpanm +##### 参考文献 +* 『[Perl徹底攻略](http://gihyo.jp/magazine/wdpress/plus/978-4-7741-5864-8)』(技術評論社)pp.8-9、pp.25-26 +* [perlbrewコマンドをzshで使えるようにする - eratostennis's blog](http://eratostennis.hatenablog.com/entry/2014/01/21/215640) + ### Web版 - http://md2inao.bloghackers.net/