about summary refs log tree commit homepage
path: root/local.mk.sample
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-09-18 16:00:11 -0700
committerEric Wong <normalperson@yhbt.net>2009-09-18 16:00:43 -0700
commit413322fa1851917b749383e9207d16ba58274f59 (patch)
tree8822f1c8a4ac0ef0da8bb20fb9eaa3f23fd17128 /local.mk.sample
parentb3fb60334bbb62bbcc62348128bd4b3897bd2ad5 (diff)
downloadunicorn-413322fa1851917b749383e9207d16ba58274f59.tar.gz
Make finger output as meaningful as possible to folks on
slower connections and small terminals
Diffstat (limited to 'local.mk.sample')
-rw-r--r--local.mk.sample5
1 files changed, 4 insertions, 1 deletions
diff --git a/local.mk.sample b/local.mk.sample
index 6896afa..68cb044 100644
--- a/local.mk.sample
+++ b/local.mk.sample
@@ -27,11 +27,14 @@ test-18:
 test-19:
         $(MAKE) test test-rails r19=1 2>&1 | sed -u -e 's!^!1.9 !'
 
+latest: NEWS
+        @awk 'BEGIN{RS="=== ";ORS=""}NR==2{sub(/\n$$/,"");print RS""$$0 }' < $<
+
 # publishes docs to http://unicorn.bogomips.org
 publish_doc:
         -git set-file-times
         $(MAKE) doc
-        awk 'BEGIN{RS="=== ";ORS=""}NR==2{ print RS""$$0 }' NEWS > doc/LATEST
+        $(MAKE) -s latest > doc/LATEST
         $(MAKE) doc_gz
         rsync -av --delete doc/ dcvr:/srv/unicorn/
         git ls-files | xargs touch