From f537545f1eac9beb8b0cc6c72038c051fd3c3cd9 Mon Sep 17 00:00:00 2001 From: isaacs Date: Thu, 11 Jul 2013 12:52:50 -0700 Subject: doc: Don't copy to legacy url if already something there --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index b1f1c3bfc..094e391e1 100644 --- a/Makefile +++ b/Makefile @@ -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 \ -- cgit v1.2.3