Skip to content

Commit

Permalink
build: Make sure ls on a clean repo works w/o error
Browse files Browse the repository at this point in the history
  • Loading branch information
iarna committed Feb 23, 2016
1 parent 1718901 commit d00801d
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -160,18 +160,23 @@ test: doc
tag:
npm tag npm@$(PUBLISHTAG) latest

publish: link doc
ls-ok:
node . ls >/dev/null

gitclean:
git clean -fd

publish: gitclean ls-ok link doc
@git push origin :v$(shell npm -v) 2>&1 || true
git clean -fd &&\
git push origin $(BRANCH) &&\
git push origin --tags &&\
npm publish --tag=$(PUBLISHTAG)

release: markedclean marked-manclean doc-clean doc
release: gitclean ls-ok markedclean marked-manclean doc-clean doc
node cli.js prune --production
@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-clean docclean release
.PHONY: all latest install dev link doc clean uninstall test man doc-clean docclean release ls-ok realclean

0 comments on commit d00801d

Please sign in to comment.