diff options
author | isaacs <i@izs.me> | 2011-09-04 12:31:22 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2011-09-04 12:31:22 +0400 |
commit | ad8bb009dc7a8a47276574c7672b4bab788cc901 (patch) | |
tree | f8f18a3db9c6bd40c82504c6e1f82941acf663b1 /Makefile | |
parent | 1149c8fda5be50428dd9ae62dd1caa6b1d6cf812 (diff) |
Always use npm-blah(1) in the md, convert appropriately
HTML gets a hyperlink, manpage gets 'npm help blah' text
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -44,7 +44,9 @@ doc: $(docs) $(htmldocs) man1/%.1: doc/%.md @[ -x ./node_modules/.bin/ronn ] || node cli.js install ronn @[ -d man1 ] || mkdir -p man1 - ./node_modules/.bin/ronn --roff $< > $@ + ./node_modules/.bin/ronn --roff $< \ + | perl -pi -e 's/npm\\-([^\(]*)\([0-9]\)/npm help \1/g' \ + > $@ man1/%/: doc/%/ @[ -d $@ ] || mkdir -p $@ |