From b2d06c5b42b592454be0925a4918a87a14028716 Mon Sep 17 00:00:00 2001 From: Donald Ephraim Curtis Date: Fri, 20 Jan 2012 21:05:56 -0600 Subject: [PATCH] Use erb instead of awk. Awk is so messy. --- melpa | 5 +---- webpage/index.erb | 50 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+), 4 deletions(-) create mode 100644 webpage/index.erb diff --git a/melpa b/melpa index 2ffc1219..65c667df 100755 --- a/melpa +++ b/melpa @@ -44,10 +44,7 @@ function melpa_sync { function melpa_generate_html { echo "*** Building webpage..." cd webpage || return 1 - awk '{ if(//) -while((getline < "../pkglist")>0) -print "* " $0 -else print}' index.tmpl > index.md + erb index.erb pandoc -s --mathml -t html --smart index.md > index.html cd .. echo diff --git a/webpage/index.erb b/webpage/index.erb new file mode 100644 index 00000000..8812f02a --- /dev/null +++ b/webpage/index.erb @@ -0,0 +1,50 @@ + +%% MELPA + +*MELPA* or *Milkypostman's ELPA* or *Milkypostman's Experimental Lisp Package Repository* if you're not into the whole brevity thing. + +> a repository for development versions of Emacs packages (hot from the repo). + +**Last Updated:** <%= Time.now.strftime("%Y.%m.%d %H:%M") %> + +## Current List of Packages being Generated Nightly + +<%= File.open("../pkglist").readlines.map{ |x| "* " + x }.join %> + +## Installing + +To add the repository put this before the call to `package-initialize` +in your `init.el` file. + + (add-to-list 'package-archives + '("melpa" . "http://melpa.milkbox.net/packages/") t) + +Please read about [known issues](#known-issues) below before +attempting to install multiple packages at once. + +## Known Issues + +Due to the way the HTTP routing works on my provider, the HTTP/1.1 +connection will time out for long package installs -- where the +package is large and takes a while to compile -- like *magit* or *evil*. + + (setq url-http-attempt-keepalives nil) + +This makes things a tad more slow but means that the install completes +correctly. Otherwise the connection times out and the install goes haywire. + +## Updating Packages + +`package.el` now includes a mechanism to upgrade packages. After running `package-list-pacages`, type *u* (mark Upgradable packages) and then *x* (eXecute the installs and deletions). When it's done installing all the packages it will ask if you want to delete the obsolete packages and so you can hit *y* (Yes). + +If you run into a problem installing or upgrading, you may need to go into your `~/.emacs.d/elpa/` directory and delete packages that are installed multiple times. This can happen when the install times out (see [Known Issues](#known-issues)). + +## Development + +[https://github.com/milkypostman/melpa](https://github.com/milkypostman/melpa) + +Contributions are welcome. Currently, the builder only supports +packages using git, subversion, mercurial, and darcs. This covers +most of the packages that I am interested in. + +