diff options
author | isaacs <i@izs.me> | 2013-07-11 23:52:50 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2013-07-11 23:52:50 +0400 |
commit | f537545f1eac9beb8b0cc6c72038c051fd3c3cd9 (patch) | |
tree | b898e298b835edc02e1ec4e58974efda6f4e27aa /Makefile | |
parent | 71fca106aa1fe91d151c4a56cb706f7943061c6e (diff) |
doc: Don't copy to legacy url if already something there
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -161,7 +161,7 @@ doc-publish: doc # legacy urls for f in $(shell find html/doc/{cli,files,misc}/ -name '*.html'); do \ j=$(shell basename $$i | sed 's|^npm-||g'); \ - cp $$i doc/$$j; \ + ! [ -f $$j ] && cp $$i doc/$$j; \ done mkdir html/api for f in $(shell find html/doc/api/ -name '*.html'); do \ |