Talk:Hpaste.el

From HaskellWiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

The following GNUmakefile allows you to fetch hpaste.el programmatically (useful for automatically fetching updates):

.PHONY:: hpaste.el
executable-find = $(firstword $(wildcard $(addsuffix /$(1),$(subst :, ,$(PATH)))))
wget = $(if $(call executable-find,wget),wget -O $@ $1,curl -LRo $@ $1)
hpaste.el::
	$(call wget,http://www.haskell.org/haskellwiki/?title=Hpaste.el\&action=raw)
	sed -i '1,/<pre-lisp>/d;\|</pre-lisp>|,$$d' $@