Skip to content

Commit

Permalink
Remove outdated docpublish make target
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs authored and othiym23 committed Aug 15, 2014
1 parent 1be4de5 commit 22abec8
Showing 1 changed file with 2 additions and 33 deletions.
35 changes: 2 additions & 33 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -175,43 +175,12 @@ publish: link doc
git clean -fd &&\
git push origin &&\
git push origin --tags &&\
npm publish &&\
make doc-publish

docpublish: doc-publish
doc-publish: doc
# legacy urls
for f in $$(find html/doc/{cli,files,misc}/ -name '*.html'); do \
j=$$(basename $$f | sed 's|^npm-||g'); \
if ! [ -f html/doc/$$j ] && [ $$j != README.html ] && [ $$j != index.html ]; then \
perl -pi -e 's/ href="\.\.\// href="/g' <$$f >html/doc/$$j; \
fi; \
done
mkdir -p html/api
for f in $$(find html/doc/api/ -name '*.html'); do \
j=$$(basename $$f | sed 's|^npm-||g'); \
perl -pi -e 's/ href="\.\.\// href="/g' <$$f >html/api/$$j; \
done
rsync -vazu --stats --no-implied-dirs --delete \
html/doc/* \
../npm-www/doc
rsync -vazu --stats --no-implied-dirs --delete \
html/static/style.css \
../npm-www/static/
#cleanup
rm -rf html/api
for f in html/doc/*.html; do \
case $$f in \
html/doc/README.html) continue ;; \
html/doc/index.html) continue ;; \
*) rm $$f ;; \
esac; \
done
npm publish

release:
@bash scripts/release.sh

sandwich:
@[ $$(whoami) = "root" ] && (echo "ok"; echo "ham" > sandwich) || (echo "make it yourself" && exit 13)

.PHONY: all latest install dev link doc clean uninstall test man doc-publish doc-clean docclean docpublish release
.PHONY: all latest install dev link doc clean uninstall test man doc-clean docclean release

0 comments on commit 22abec8

Please sign in to comment.