From 921e79025cd64cfcd68b6e24bd897d3a5e48304a Mon Sep 17 00:00:00 2001 From: David Sheets Date: Thu, 30 Aug 2012 17:48:04 -0700 Subject: [PATCH] Support local asset copying, rooted build trees, asset deletion --- demo-page.xsl | 67 ++++++++++++++++++++++--------------- local-assets.xsl | 81 +++++++++++++++++++++++++++++++++++---------- static-manifest.xsl | 52 +++++++++++++++++++++++++---- 3 files changed, 149 insertions(+), 51 deletions(-) diff --git a/demo-page.xsl b/demo-page.xsl index a76d3a1..9be6f4e 100644 --- a/demo-page.xsl +++ b/demo-page.xsl @@ -55,16 +55,39 @@ - - - - - - - + + + + + + + + + + + + + - - + + + + + + + + + + + + + + + + + + + @@ -78,27 +101,15 @@ - + - - - - - - - - - - - - - - - - + + + + @@ -113,7 +124,9 @@ - + + + diff --git a/local-assets.xsl b/local-assets.xsl index 2afac27..1436bc6 100644 --- a/local-assets.xsl +++ b/local-assets.xsl @@ -4,30 +4,77 @@ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> + + #!/bin/sh - + + - + + + + - - - - - - - - - - curl - - --create-dirs -o - - -z - + + + + + + + + + + + curl + + --create-dirs -o + + -z + + + + + + + + + mkdir -p `dirname + + ` + cp -f + + + + + + + rm -rfv + + + + + + + + + + + + + + + + + + + + + + diff --git a/static-manifest.xsl b/static-manifest.xsl index 070df4c..cce326e 100644 --- a/static-manifest.xsl +++ b/static-manifest.xsl @@ -4,6 +4,8 @@ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> + + @@ -31,8 +33,10 @@ - - + + + + @@ -40,15 +44,20 @@ - - - + + + + + @@ -56,7 +65,36 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +