Talk:Hpaste.el

From HaskellWiki
Revision as of 17:37, 21 July 2007 by Twb (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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' $@