New appcache build process.
authorJoe Wreschnig <joe.wreschnig@gmail.com>
Sun, 31 Aug 2014 21:29:41 +0000 (23:29 +0200)
committerJoe Wreschnig <joe.wreschnig@gmail.com>
Sun, 31 Aug 2014 21:29:41 +0000 (23:29 +0200)
.gitignore
Makefile [new file with mode: 0644]
index.html
labelle.appcache.in [new file with mode: 0644]
labelle.manifest [deleted file]

index 5236e1e..48a0eb5 100644 (file)
@@ -1,2 +1,3 @@
 *~
+labelle.appcache
 
diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..424d160
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,12 @@
+appcache>contents = $(shell grep -vFx -e "*" -e "CACHE MANIFEST" -e "CACHE:" -e "NETWORK:" -e "FALLBACK:" $(1) | grep -v -e "^\#" )
+
+.PHONY: all clean
+
+.SECONDEXPANSION:
+%.appcache: %.appcache.in $$(call appcache>contents,$$*.appcache.in)
+       sed "s/<Last-Updated>$$/Last-Updated: `date -u +'%Y-%m-%dT%H:%M:%SZ'`/" $< > $@
+
+all: labelle.appcache
+
+clean:
+       $(RM) labelle.appcache
index 36259ad..49c9102 100644 (file)
@@ -1,5 +1,5 @@
 <!DOCTYPE html>
-<html lang="en">
+<html lang="en" manifest=labelle.appcache>
   <head>
     <meta charset="utf-8">
     <meta name=viewport content="width=device-width, initial-scale=1">
       <dt>What is this?</dt>
       <dd>
         The Labelle Litanizer generates random <em>Animal Crossing:
-        New Leaf</em> outfits. Ignoring the realities of the period
-        and distribution of your random number generator, all
-        possible outfits should have some chance of appearing.
+        New Leaf</em> outfits. Ignoring the limitations of your
+        computer's random number generator, all possible outfits
+        have a chance of appearing.
       </dd>
       <dt>What's with the name?</dt>
       <dd>
       <dt>Why?</dt>
       <dd>
         Latour litanies confront us with objects in a way that defies
-        our usual methods of grouping or reduction. In a similar way
-        the Labelle Litanizer asks us to consider the possible rather
-        than merely the desirable or expected. <em>New Leaf</em>
-        contains a huge number of objects you can wear (or otherwise
-        visibly present with, if you are uncomfortable saying you
-        are "wearing" an ice cream cone). But that scale and
-        diversity is obscured due to its grouping algorithms, the
-        small number presented at any one time, and our cultural
-        norms about dress.
+        our usual methods of grouping or reduction. Like them, the
+        Labelle Litanizer asks us to consider the possible rather than
+        the desirable or expected. <em>New Leaf</em>
+        contains a huge number of objects you can wear. But the scale
+        and diversity is obscured due to its grouping decisions, the
+        small number presented at any one time, and our cultural norms
+        about dress.
       </dd>
       <dt>
         Can I restrict it to my items?
diff --git a/labelle.appcache.in b/labelle.appcache.in
new file mode 100644 (file)
index 0000000..a7eab7d
--- /dev/null
@@ -0,0 +1,17 @@
+CACHE MANIFEST
+# <Last-Updated>
+
+index.html
+acnl-wearables-list.js
+acnl-outfit.js
+fastclick.js
+
+VarelaRound-Regular.woff
+
+icon_128x128.png
+labelle-2.png
+twitter.png
+spring.png
+summer.png
+autumn.png
+winter.png
diff --git a/labelle.manifest b/labelle.manifest
deleted file mode 100644 (file)
index f1abac9..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-CACHE MANIFEST
-# Version 2
-/css/main.css
-/css/FiraSans-Light.woff
-/css/FiraSans-LightItalic.woff
-/css/FiraSans-Regular.woff
-/css/FiraSans-RegularItalic.woff
-/css/FiraSans-Bold.woff
-/css/FiraSans-BoldItalic.woff
-/logotype_horizontal_1.png
-/logotype_horizontal_2.png
-/logotype_horizontal_3.png
-labelle.jpg
-twitter.png
-acnl-wearables-list.js
-acnl-outfit.js