Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2011-09-04 12:31:22 +0400
committerisaacs <i@izs.me>2011-09-04 12:31:22 +0400
commitad8bb009dc7a8a47276574c7672b4bab788cc901 (patch)
treef8f18a3db9c6bd40c82504c6e1f82941acf663b1 /Makefile
parent1149c8fda5be50428dd9ae62dd1caa6b1d6cf812 (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--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 9ea9c3bf9..1483ffa09 100644
--- a/Makefile
+++ b/Makefile
@@ -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 $@