Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Removed demo

  • Loading branch information...
commit 697ff28ada5623e94db95f50901854453d586cc9 1 parent bb62dca
Samuel Cotterall authored November 09, 2011

Showing 38 changed files with 0 additions and 34,649 deletions. Show diff stats Hide diff stats

  1. 38  demo/404.html
  2. 63  demo/README.md
  3. BIN  demo/apple-touch-icon-114x114-precomposed.png
  4. BIN  demo/apple-touch-icon-57x57-precomposed.png
  5. BIN  demo/apple-touch-icon-72x72-precomposed.png
  6. BIN  demo/apple-touch-icon-precomposed.png
  7. BIN  demo/apple-touch-icon.png
  8. 1,065  demo/build/build.xml
  9. 116  demo/build/config/default.properties
  10. 22  demo/build/config/manifest.appcache
  11. 96  demo/build/config/project.properties
  12. 76  demo/build/createproject.sh
  13. 7  demo/build/project.xml
  14. 6  demo/build/runbuildscript.bat
  15. BIN  demo/build/tools/ant-contrib-1.0b3.jar
  16. BIN  demo/build/tools/closure-compiler-v1346.jar
  17. 11,138  demo/build/tools/csslint-rhino.js
  18. 5,904  demo/build/tools/fulljshint.js
  19. 6,651  demo/build/tools/fulljslint.js
  20. BIN  demo/build/tools/htmlcompressor-1.4.3.jar
  21. BIN  demo/build/tools/jpegtran.exe
  22. 21  demo/build/tools/optipng-0.6.4-exe/LICENSE.txt
  23. BIN  demo/build/tools/optipng-0.6.4-exe/optipng.exe
  24. BIN  demo/build/tools/rhino.jar
  25. BIN  demo/build/tools/yuicompressor-2.4.5.jar
  26. 25  demo/crossdomain.xml
  27. 287  demo/css/style.css
  28. BIN  demo/favicon.ico
  29. 43  demo/humans.txt
  30. 2  demo/img/.gitignore
  31. BIN  demo/img/qr.gif
  32. 9,046  demo/js/libs/jquery-1.6.4.js
  33. 4  demo/js/libs/jquery-1.6.4.min.js
  34. 4  demo/js/libs/modernizr-2.0.6.min.js
  35. 2  demo/js/mylibs/.gitignore
  36. 20  demo/js/plugins.js
  37. 8  demo/js/script.js
  38. 5  demo/robots.txt
38  demo/404.html
... ...
@@ -1,38 +0,0 @@
1  
-<!doctype html>
2  
-<html>
3  
-<head>
4  
-  <meta charset="utf-8">
5  
-  <title>Page Not Found :(</title>
6  
-  <style>
7  
-    body { text-align: center;}
8  
-    h1 { font-size: 50px; text-align: center }
9  
-    span[data-frown] { transform: rotate(90deg); display:inline-block; color: #bbb; }
10  
-    body { font: 20px Constantia, 'Hoefler Text',  "Adobe Caslon Pro", Baskerville, Georgia, Times, serif; color: #999; text-shadow: 2px 2px 2px rgba(200, 200, 200, 0.5); }
11  
-    ::-moz-selection{ background:#FF5E99; color:#fff; }
12  
-    ::selection { background:#FF5E99; color:#fff; }
13  
-    article {display:block; text-align: left; width: 500px; margin: 0 auto; }
14  
-
15  
-    a { color: rgb(36, 109, 56); text-decoration:none; }
16  
-    a:hover { color: rgb(96, 73, 141) ; text-shadow: 2px 2px 2px rgba(36, 109, 56, 0.5); }
17  
-  </style>
18  
-</head>
19  
-<body>
20  
-  <article>
21  
-    <h1>Not found <span data-frown>:(</span></h1>
22  
-    <div>
23  
-      <p>Sorry, but the page you were trying to view does not exist.</p>
24  
-      <p>It looks like this was the result of either:</p>
25  
-      <ul>
26  
-        <li>a mistyped address</li>
27  
-        <li>an out-of-date link</li>
28  
-      </ul>
29  
-    </div>
30  
-
31  
-    <script>
32  
-      var GOOG_FIXURL_LANG = (navigator.language || '').slice(0,2),
33  
-      GOOG_FIXURL_SITE = location.host;
34  
-    </script>
35  
-    <script src="http://linkhelp.clients.google.com/tbproxy/lh/wm/fixurl.js"></script>
36  
-  </article>
37  
-</body>
38  
-</html>
63  demo/README.md
Source Rendered
... ...
@@ -1,63 +0,0 @@
1  
-# [HTML5 Boilerplate](http://html5boilerplate.com)
2  
-
3  
-HTML5 Boilerplate is a professional front-end template that helps you build fast, robust, adaptable, and future-proof websites. Spend more time developing and less time reinventing the wheel.
4  
-
5  
-This project is the product of many years of iterative development and combined community knowledge. It does not impose a specific development philosophy or framework, so you're free to architect your code in the way that you want.
6  
-
7  
-
8  
-## Quick start
9  
-
10  
-Clone the git repo - `git clone git://github.com/h5bp/html5-boilerplate.git` - or [download it](https://github.com/h5bp/html5-boilerplate/zipball/master)
11  
-
12  
-
13  
-## Features
14  
-
15  
-* HTML5 ready. Use the new elements with confidence.
16  
-* Cross-browser compatible (Chrome, Opera, Safari, Firefox 3.6+, IE6+).
17  
-* "Mobile first"/"Responsive design"-capable out of the box.
18  
-* Designed with progressive enhancement in mind.
19  
-* CSS normalizations and common bug fixes.
20  
-* IE-specific classes for easier cross-browser control.
21  
-* A default print stylesheet, performance optimized.
22  
-* Mobile browser optimizations.
23  
-* Protection against any stray `console.log` causing JavaScript errors in IE6/7.
24  
-* The latest jQuery via CDN, with a local fallback.
25  
-* A custom Modernizr build (including Respond.js) for feature detection and a polyfill for CSS Media Queries.
26  
-* An optimized Google Analytics snippet.
27  
-* Apache server caching, compression, and other configuration defaults for Grade-A performance.
28  
-* A build script to automate the minification and concatenation of your HTML/CSS/JS.
29  
-* Cross-domain Ajax and Flash.
30  
-* "Delete-key friendly." Easy to strip out parts you don't need.
31  
-* Extensive inline and accompanying documentation.
32  
-
33  
-
34  
-## Contributing
35  
-
36  
-Anyone and everyone is welcome to contribute. Hundreds of developers have helped make the HTML5 Boilerplate what it is today. There are several ways you can help out:
37  
-
38  
-1. Raising [issues](https://github.com/h5bp/html5-boilerplate/issues) on GitHub.
39  
-2. Sending pull requests for bug fixes or new features and improvements.
40  
-3. Making the [docs](https://github.com/h5bp/html5-boilerplate/wiki) better.
41  
-
42  
-
43  
-## Project information
44  
-
45  
-* Source: http://github.com/h5bp/html5-boilerplate
46  
-* Web: http://html5boilerplate.com
47  
-* Docs: http://html5boilerplate.com/docs
48  
-* Mailing list: http://h5bp.com/group
49  
-* Twitter: http://twitter.com/h5bp
50  
-
51  
-
52  
-## License
53  
-
54  
-### Major components:
55  
-
56  
-* jQuery: MIT/GPL license
57  
-* Modernizr: MIT/BSD license
58  
-* Respond.js: MIT/GPL license
59  
-* Normalize.css: Public Domain
60  
-
61  
-### Everything else:
62  
-
63  
-The Unlicense (aka: public domain)
BIN  demo/apple-touch-icon-114x114-precomposed.png
BIN  demo/apple-touch-icon-57x57-precomposed.png
BIN  demo/apple-touch-icon-72x72-precomposed.png
BIN  demo/apple-touch-icon-precomposed.png
BIN  demo/apple-touch-icon.png
1,065  demo/build/build.xml
... ...
@@ -1,1065 +0,0 @@
1  
-<?xml version="1.0"?>
2  
-<!DOCTYPE project>
3  
-<project name="Boilerplate Build" default="build" basedir="../"> <!-- one back since we're in build/ -->
4  
-
5  
-
6  
-    <!-- Load in Ant-Contrib to give us access to some very useful tasks! -->
7  
-    <!-- the .jar file is located in the tools directory -->
8  
-    <taskdef resource="net/sf/antcontrib/antlib.xml">
9  
-        <classpath>
10  
-            <pathelement location="${basedir}/build/tools/ant-contrib-1.0b3.jar"/>
11  
-        </classpath>
12  
-    </taskdef>
13  
-
14  
-    <!-- load shell environment -->
15  
-    <property environment="ENV" />
16  
-
17  
-    <!-- load property files -->
18  
-    <property file="build/config/project.properties"/>
19  
-    <property file="build/config/default.properties"/>
20  
-
21  
-    <!-- merge the stylesheet properties -->
22  
-    <var name="stylesheet-files" value="${file.default.stylesheets}, ${file.stylesheets}"/>
23  
-
24  
-    <!-- merge the pages properties -->
25  
-    <var name="page-files" value="${file.pages}, ${file.pages.default.include}"/>
26  
-
27  
-    <!-- Test for Ant Version Delete this task and all instances of overwrite='no' if you can't upgrade to 1.8.2-->
28  
-    <fail message="All features of the build script require Ant version 1.8.2. Please upgrade to 1.8.2 or remove all instances of 'overwrite=no' (and this fail task) from the build script to continue">
29  
-        <condition>
30  
-            <not>
31  
-                <contains string="${ant.version}" substring="1.8.2"/>
32  
-            </not>
33  
-        </condition>
34  
-    </fail>
35  
-
36  
-    <!--
37  
-    *************************************************
38  
-    * BASE TARGETS                                  *
39  
-    *************************************************
40  
-    -->
41  
-    <target name="basics">
42  
-    <if>
43  
-        <equals arg1="${env}" arg2="dev"/>
44  
-        <then>
45  
-            <!-- Build a dev environment -->
46  
-            <echo message="Building a Development Environment..."/>
47  
-            <antcall target="-basics.dev"/>
48  
-        </then>
49  
-
50  
-        <elseif>
51  
-            <equals arg1="${env}" arg2="test"/>
52  
-            <then>
53  
-                <!-- Build a test environment -->
54  
-                <echo message="Building a Test Environment..."/>
55  
-                <antcall target="-basics.test"/>
56  
-            </then>
57  
-        </elseif>
58  
-
59  
-        <else>
60  
-            <!-- Build a production environment -->
61  
-            <echo message="Building a Production Environment..."/>
62  
-            <antcall target="-basics.production"/>
63  
-        </else>
64  
-    </if>
65  
-    </target>
66  
-
67  
-
68  
-    <target name="text">
69  
-    <if>
70  
-        <equals arg1="${env}" arg2="dev"/>
71  
-        <then>
72  
-            <!-- Build a dev environment -->
73  
-            <echo message="Building a Development Environment..."/>
74  
-            <antcall target="-text.dev"/>
75  
-        </then>
76  
-
77  
-        <elseif>
78  
-            <equals arg1="${env}" arg2="test"/>
79  
-            <then>
80  
-                <!-- Build a test environment -->
81  
-                <echo message="Building a Test Environment..."/>
82  
-                <antcall target="-text.test"/>
83  
-            </then>
84  
-        </elseif>
85  
-
86  
-        <else>
87  
-            <!-- Build a production environment -->
88  
-            <echo message="Building a Production Environment..."/>
89  
-            <antcall target="-text.production"/>
90  
-        </else>
91  
-    </if>
92  
-    <antcall target="-imgcopy"/>
93  
-    </target>
94  
-
95  
-
96  
-    <target name="buildkit">
97  
-    <if>
98  
-        <equals arg1="${env}" arg2="dev"/>
99  
-        <then>
100  
-            <!-- Build a dev environment -->
101  
-            <echo message="Building a Development Environment..."/>
102  
-            <antcall target="-buildkit.dev"/>
103  
-        </then>
104  
-
105  
-        <elseif>
106  
-            <equals arg1="${env}" arg2="test"/>
107  
-            <then>
108  
-                <!-- Build a test environment -->
109  
-                <echo message="Building a Test Environment..."/>
110  
-                <antcall target="-buildkit.test"/>
111  
-            </then>
112  
-        </elseif>
113  
-
114  
-        <else>
115  
-            <!-- Build a production environment -->
116  
-            <echo message="Building a Production Environment..."/>
117  
-            <antcall target="-buildkit.production"/>
118  
-        </else>
119  
-    </if>
120  
-    </target>
121  
-
122  
-
123  
-    <target name="build">
124  
-    <if>
125  
-        <equals arg1="${env}" arg2="dev"/>
126  
-        <then>
127  
-            <!-- Build a dev environment -->
128  
-            <echo message="Building a Development Environment..."/>
129  
-            <antcall target="-build.dev" />
130  
-        </then>
131  
-
132  
-        <elseif>
133  
-            <equals arg1="${env}" arg2="test"/>
134  
-            <then>
135  
-                <!-- Build a test environment -->
136  
-                <echo message="Building a Test Environment..."/>
137  
-                <antcall target="-build.test" />
138  
-            </then>
139  
-        </elseif>
140  
-
141  
-        <else>
142  
-            <!-- Build a production environment -->
143  
-            <echo message="Building a Production Environment..."/>
144  
-            <antcall target="-build.production" />
145  
-        </else>
146  
-    </if>
147  
-    </target>
148  
-
149  
-
150  
-    <target name="minify">
151  
-    <if>
152  
-        <equals arg1="${env}" arg2="dev"/>
153  
-        <then>
154  
-            <!-- Build a dev environment -->
155  
-            <echo message="Building a Development Environment..."/>
156  
-            <antcall target="-minify.dev"/>
157  
-        </then>
158  
-
159  
-        <elseif>
160  
-            <equals arg1="${env}" arg2="test"/>
161  
-            <then>
162  
-                <!-- Build a test environment -->
163  
-                <echo message="Building a Test Environment..."/>
164  
-                <antcall target="-minify.test"/>
165  
-            </then>
166  
-        </elseif>
167  
-
168  
-        <else>
169  
-            <!-- Build a production environment -->
170  
-            <echo message="Building a Production Environment..."/>
171  
-            <antcall target="-minify.production"/>
172  
-        </else>
173  
-    </if>
174  
-    </target>
175  
-
176  
-    <target name="clean" depends="-clean"/>
177  
-
178  
-
179  
-
180  
-    <!-- JSLint target, run separately -->
181  
-    <target name="jslint">
182  
-      <apply dir="${dir.source}/${dir.js}" executable="java" parallel="false" failonerror="true">
183  
-            <fileset dir="./${dir.source}/">
184  
-        <include name="**/${dir.js}/*.js"/>
185  
-        <exclude name="**/*.min.js"/>
186  
-        <exclude name="**/${dir.js.libs}/"/>
187  
-        <exclude name="**/${dir.publish}/"/>
188  
-          </fileset>
189  
-            <arg value="-jar" />
190  
-            <arg path="./${dir.build.tools}/${tool.rhino}" />
191  
-            <arg path="./${dir.build.tools}/${tool.jslint}" />
192  
-            <srcfile/>
193  
-            <arg value="${tool.jslint.opts}" />
194  
-        </apply>
195  
-        <echo>JSLint Successful</echo>
196  
-    </target>
197  
-
198  
-
199  
-    <!-- JSHint target, run separately -->
200  
-    <target name="jshint">
201  
-      <apply dir="${dir.source}/${dir.js}" executable="java" parallel="false" failonerror="true">
202  
-            <fileset dir="./${dir.source}/">
203  
-        <include name="**/${dir.js}/*.js"/>
204  
-        <exclude name="**/*.min.js"/>
205  
-        <exclude name="**/${dir.js.libs}/"/>
206  
-        <exclude name="**/${dir.publish}/"/>
207  
-          </fileset>
208  
-            <arg value="-jar" />
209  
-            <arg path="./${dir.build.tools}/${tool.rhino}" />
210  
-            <arg path="./${dir.build.tools}/${tool.jshint}" />
211  
-            <srcfile/>
212  
-            <arg value="${tool.jshint.opts}" />
213  
-        </apply>
214  
-        <echo>JSHint Successful</echo>
215  
-    </target>
216  
-
217  
-    <!-- CSSLint target, run separately -->
218  
-    <target name="csslint">
219  
-        <apply dir="${dir.source}/${dir.css}" executable="java" parallel="false" failonerror="true">
220  
-            <fileset dir="./${dir.source}/">
221  
-                <include name="**/${dir.css}/*.css"/>
222  
-                <exclude name="**/*.min.css"/>
223  
-                <exclude name="**/${dir.publish}/"/>
224  
-            </fileset>
225  
-            <arg value="-jar" />
226  
-            <arg path="./${dir.build.tools}/${tool.rhino}" />
227  
-            <arg path="./${dir.build.tools}/${tool.csslint}" />
228  
-            <srcfile/>
229  
-            <arg value="${tool.csslint.opts}" />
230  
-        </apply>
231  
-        <echo>CSSLint Successful</echo>
232  
-    </target>
233  
-
234  
-    <!--
235  
-    *************************************************
236  
-    * BUILD TARGETS                                 *
237  
-    *************************************************
238  
-    -->
239  
-
240  
-    <!-- Target: basics -->
241  
-    <target name="-basics.dev"
242  
-            depends="-intro,
243  
-                     -copy"/>
244  
-
245  
-    <target name="-basics.test"
246  
-            depends="-intro,
247  
-                     -usemin,
248  
-                     -js.all.minify,
249  
-                     -js.main.concat,
250  
-                     -js.mylibs.concat,
251  
-                     -js.scripts.concat,
252  
-                     -css,
253  
-                     -manifest,
254  
-                     -copy"/>
255  
-
256  
-    <target name="-basics.production"
257  
-            depends="-intro,
258  
-                     -usemin,
259  
-                     -js.all.minify,
260  
-                     -js.main.concat,
261  
-                     -js.mylibs.concat,
262  
-                     -js.scripts.concat,
263  
-                     -css,
264  
-                     -manifest,
265  
-                     -copy"/>
266  
-
267  
-    <!-- Target: text -->
268  
-    <target name="-text.dev"
269  
-            depends="-intro,
270  
-                     -copy"/>
271  
-
272  
-    <target name="-text.test"
273  
-            depends="-intro,
274  
-                     -usemin,
275  
-                     -js.all.minify,
276  
-                     -js.main.concat,
277  
-                     -js.mylibs.concat,
278  
-                     -js.scripts.concat,
279  
-                     -css,
280  
-                     -manifest,
281  
-                     -htmlclean,
282  
-                     -copy"/>
283  
-
284  
-    <target name="-text.production"
285  
-            depends="-intro,
286  
-                     -usemin,
287  
-                     -js.all.minify,
288  
-                     -js.main.concat,
289  
-                     -js.mylibs.concat,
290  
-                     -js.scripts.concat,
291  
-                     -css,
292  
-                     -manifest,
293  
-                     -htmlclean,
294  
-                     -copy"/>
295  
-
296  
-    <!-- Target: buildkit -->
297  
-    <target name="-buildkit.dev"
298  
-            depends="-intro,
299  
-                     -imagespng,
300  
-                     -imagesjpg,
301  
-                     -copy"/>
302  
-
303  
-    <target name="-buildkit.test"
304  
-            depends="-intro,
305  
-                     -usemin,
306  
-                     -js.all.minify,
307  
-                     -js.main.concat,
308  
-                     -js.mylibs.concat,
309  
-                     -js.scripts.concat,
310  
-                     -css,
311  
-                     -manifest,
312  
-                     -htmlbuildkit,
313  
-                     -imagespng,
314  
-                     -imagesjpg,
315  
-                     -copy"/>
316  
-
317  
-    <target name="-buildkit.production"
318  
-            depends="-intro,
319  
-                     -usemin,
320  
-                     -js.all.minify,
321  
-                     -js.main.concat,
322  
-                     -js.mylibs.concat,
323  
-                     -js.scripts.concat,
324  
-                     -css,
325  
-                     -manifest,
326  
-                     -htmlbuildkit,
327  
-                     -imagespng,
328  
-                     -imagesjpg,
329  
-                     -copy"/>
330  
-
331  
-    <!-- Target: build -->
332  
-    <target name="-build.dev"
333  
-            depends="-intro,
334  
-                     -imagespng,
335  
-                     -imagesjpg,
336  
-                     -copy"/>
337  
-
338  
-    <target name="-build.test"
339  
-            depends="-intro,
340  
-                     -usemin,
341  
-                     -js.all.minify,
342  
-                     -js.main.concat,
343  
-                     -js.mylibs.concat,
344  
-                     -js.scripts.concat,
345  
-                     -css,
346  
-                     -manifest,
347  
-                     -htmlclean,
348  
-                     -imagespng,
349  
-                     -imagesjpg,
350  
-                     -copy"/>
351  
-
352  
-    <target name="-build.production"
353  
-            depends="-intro,
354  
-                     -usemin,
355  
-                     -js.all.minify,
356  
-                     -js.main.concat,
357  
-                     -js.mylibs.concat,
358  
-                     -js.scripts.concat,
359  
-                     -css,
360  
-                     -manifest,
361  
-                     -htmlclean,
362  
-                     -imagespng,
363  
-                     -imagesjpg,
364  
-                     -copy"/>
365  
-
366  
-    <!-- Target: minify -->
367  
-    <target name="-minify.dev"
368  
-            depends="-intro,
369  
-                     -imagespng,
370  
-                     -imagesjpg,
371  
-                     -copy"/>
372  
-
373  
-    <target name="-minify.test"
374  
-            depends="-intro,
375  
-                     -usemin,
376  
-                     -js.all.minify,
377  
-                     -js.main.concat,
378  
-                     -js.mylibs.concat,
379  
-                     -js.scripts.concat,
380  
-                     -css,
381  
-                     -manifest,
382  
-                     -htmlcompress,
383  
-                     -imagespng,
384  
-                     -imagesjpg,
385  
-                     -copy"/>
386  
-
387  
-    <target name="-minify.production"
388  
-            depends="-intro,
389  
-                     -usemin,
390  
-                     -js.all.minify,
391  
-                     -js.main.concat,
392  
-                     -js.mylibs.concat,
393  
-                     -js.scripts.concat,
394  
-                     -css,
395  
-                     -manifest,
396  
-                     -htmlcompress,
397  
-                     -imagespng,
398  
-                     -imagesjpg,
399  
-                     -copy"/>
400  
-
401  
-    <!--
402  
-    *************************************************
403  
-    * FUNCTION TARGETS                              *
404  
-    *************************************************
405  
-    -->
406  
-
407  
-    <target name="-clean" description="(PRIVATE) Wipe the previous build (Deletes the dir.publish directory">
408  
-    <!-- This is a private target -->
409  
-        <echo message="Cleaning up previous build directory..."/>
410  
-        <delete dir="./${dir.intermediate}/"/>
411  
-        <delete dir="./${dir.publish}/"/>
412  
-    </target>
413  
-
414  
-
415  
-    <target name="-intro" description="(PRIVATE) Kindly inform the developer about the impending magic">
416  
-    <!-- This is a private target -->
417  
-
418  
-        <echo message="====================================================================="/>
419  
-        <echo message="Welcome to the HTML5 Boilerplate Build Script!"/>
420  
-        <echo message=" "/>
421  
-        <echo message="We're going to get your site all ship-shape and ready for prime time."/>
422  
-        <echo message=" "/>
423  
-        <echo message="This should take somewhere between 15 seconds and a few minutes,"/>
424  
-        <echo message="mostly depending on how many images we're going to compress."/>
425  
-        <echo message=" "/>
426  
-        <echo message="Feel free to come back or stay here and follow along."/>
427  
-        <echo message="====================================================================="/>
428  
-        <echo message=" "/>
429  
-        <echo message=" "/>
430  
-
431  
-    </target>
432  
-
433  
-    <target name="-mkdirs" depends="-clean">
434  
-      <if>
435  
-          <or>
436  
-            <equals arg1="${dir.publish}" arg2="."/>
437  
-            <equals arg1="${dir.publish}" arg2=".."/>
438  
-            <equals arg1="${dir.publish}" arg2="/"/>
439  
-            <equals arg1="${dir.publish}" arg2="./"/>
440  
-            <equals arg1="${dir.publish}" arg2="../"/>
441  
-          </or>
442  
-          <then>
443  
-            <fail message="Your dir.publish folder is set to ${dir.publish} which could delete your entire site or worse. Change it in project.properties"/>
444  
-          </then>
445  
-          <else>
446  
-            <echo message="Creating directory structure... ${dir.publish}"/>
447  
-
448  
-            <mkdir dir="${dir.intermediate}"/>
449  
-            <copy todir="${dir.intermediate}" includeEmptyDirs="true">
450  
-                <fileset dir="${dir.source}/" excludes="${file.default.exclude}, ${file.exclude}">
451  
-                    <type type="dir"/>
452  
-                </fileset>
453  
-            </copy>
454  
-              <mkdir dir="${dir.publish}"/>
455  
-              <copy todir="${dir.publish}" includeEmptyDirs="true">
456  
-                  <fileset dir="${dir.source}/" excludes="${file.default.exclude}, ${file.exclude}">
457  
-                      <type type="dir"/>
458  
-                  </fileset>
459  
-              </copy>
460  
-          </else>
461  
-      </if>
462  
-    </target>
463  
-
464  
-    <target name="-copy" depends="-mkdirs">
465  
-    <!-- This is a private target -->
466  
-
467  
-        <echo message="Copying over new files..."/>
468  
-
469  
-        <copy todir="./${dir.publish}">
470  
-            <fileset dir="${dir.source}/" excludes="${file.default.exclude}, ${file.exclude}">
471  
-                <!-- exclude files that are superseded by optimized versions with different names -->
472  
-                <!-- this is not strictly necessary, but it avoids putting unreferenced files into your server -->
473  
-                <exclude name="${dir.js}/**/*.js"/>
474  
-                <exclude name="${dir.css}/**/*.css"/>
475  
-                <exclude name="${file.manifest}"/>
476  
-            </fileset>
477  
-        </copy>
478  
-
479  
-        <echo message="A copy of all non-dev files are now in: ./${dir.publish}."/>
480  
-    </target>
481  
-
482  
-    <!-- JAVASCRIPT -->
483  
-    <target name="-js.main.concat" depends="-js.all.minify" description="(PRIVATE) Concatenates the JS files in dir.js">
484  
-        <echo message="Concatenating Main JS scripts..."/>
485  
-        <!-- overwrite=no here means not to overwrite if the target is newer than the sources -->
486  
-        <concat destfile="./${dir.intermediate}/${dir.js}/scripts-concat.js" overwrite="no">
487  
-            <fileset dir="./${dir.intermediate}/">
488  
-                <include name="${dir.js.main}/plugins.js"/>
489  
-                <include name="${dir.js.main}/${file.root.script}"/>
490  
-            </fileset>
491  
-        </concat>
492  
-    </target>
493  
-
494  
-    <target name="-js.mylibs.concat" depends="-js.all.minify" description="(PRIVATE) Concatenates the JS files in dir.js.mylibs">
495  
-        <mkdir dir="./${dir.intermediate}/${dir.js.mylibs}"/>
496  
-
497  
-        <echo message="Concatenating JS libraries"/>
498  
-        <!-- overwrite=no here means not to overwrite if the target is newer than the sources -->
499  
-        <concat destfile="./${dir.intermediate}/${dir.js}/mylibs-concat.js" overwrite="no">
500  
-            <fileset dir="./${dir.intermediate}/${dir.js.mylibs}/"
501  
-                includes="**/*.js"
502  
-                excludes="${file.js.bypass}"/>
503  
-
504  
-        </concat>
505  
-    </target>
506  
-
507  
-
508  
-    <target name="-js.scripts.concat" depends="-js.main.concat,-js.mylibs.concat" if="build.concat.scripts">
509  
-        <echo message="Concatenating library file with main script file"/>
510  
-        <!-- overwrite=no here means not to overwrite if the target is newer than the sources -->
511  
-        <concat destfile="./${dir.intermediate}/${dir.js}/scripts-concat.min.js" overwrite="no">
512  
-            <fileset dir="./${dir.intermediate}/${dir.js}/">
513  
-                <include name="mylibs-concat.js"/>
514  
-                <include name="scripts-concat.js"/>
515  
-            </fileset>
516  
-        </concat>
517  
-
518  
-        <checksum file="${dir.intermediate}/${dir.js}/scripts-concat.min.js" algorithm="sha" property="scripts.fullsha" />
519  
-        <propertyregex property="scripts.sha" input="${scripts.fullsha}" regexp=".{${hash.length}}" select="\0" />
520  
-        <property name="scripts.js" value="${dir.js}/${scripts.sha}.js" />
521  
-        <copy file="${dir.intermediate}/${dir.js}/scripts-concat.min.js" tofile="${dir.publish}/${dir.js}/${scripts.sha}.js" />
522  
-    </target>
523  
-
524  
-
525  
-    <target name="-js.all.minify" depends="-mkdirs" description="(PRIVATE) Minifies the scripts.js files created by js.scripts.concat">
526  
-        <echo message="Minifying scripts"/>
527  
-        <copy todir="${dir.intermediate}/">
528  
-            <fileset dir="${dir.source}/" includes="${dir.js}/**/*.min.js"  />
529  
-        </copy>
530  
-        <apply executable="java" parallel="false">
531  
-            <fileset dir="${dir.source}/" >
532  
-                <include name="${dir.js}/**/*.js"/>
533  
-                <exclude name="${dir.js}/**/*.min.js"/>
534  
-            </fileset>
535  
-            <arg line="-jar"/>
536  
-            <arg path="./${dir.build.tools}/closure-compiler-v1346.jar"/>
537  
-            <arg line="--js"/>
538  
-			<srcfile/>
539  
-			<arg line="--compilation_level" />
540  
-			 <arg value="${scripts.compilation.level}" />
541  
-			 <arg line="--warning_level" />
542  
-			 <arg value="${scripts.compilation.warninglevel}" />
543  
-			 <arg line="--js_output_file" />
544  
-            <mapper type="glob" from="*.js" to="${basedir}/${dir.intermediate}/*.js"/>
545  
-            <targetfile/>
546  
-        </apply>
547  
-
548  
-        <!-- at this point all js files are minified with their original names -->
549  
-
550  
-        <copy todir="${dir.publish}/">
551  
-          <fileset dir="${dir.intermediate}/">
552  
-              <include name="${dir.js}/**/*.js"/>
553  
-              <exclude name="${dir.js.mylibs}/**/*.js"/>
554  
-              <exclude name="${dir.js}/scripts-concat.js"/>
555  
-              <exclude name="${dir.js}/mylibs-concat.js"/>
556  
-              <exclude name="${dir.js}/scripts-concat.min.js"/>
557  
-              <exclude name="${dir.js}/plugins.js"/>
558  
-              <exclude name="${dir.js}/${file.root.script}"/>
559  
-          </fileset>
560  
-        </copy>
561  
-        <copy todir="${dir.publish}/${dir.js.mylibs}/">
562  
-            <fileset dir="${dir.source}/${dir.js.mylibs}/"
563  
-            includes="${file.js.bypass}"/>
564  
-        </copy>
565  
-    </target>
566  
-
567  
-
568  
-    <!-- HTML -->
569  
-    <target name="-usemin" depends="-js.scripts.concat,-css" description="(PRIVATE) Replaces references to non-minified scripts">
570  
-        <echo message="Switching to minified js files..."/>
571  
-
572  
-        <!-- Changes to style.css or scripts.js mean that the html must be updated, and it will be.
573  
-             Unfortunately, the html we want to update may not have the tags we want to replace(because it was updated before).
574  
-             This outofdate check ensures that the html files have the markers for us to replace. -->
575  
-        <outofdate property="needhtmlrefresh">
576  
-            <sourcefiles>
577  
-                <fileset dir="${dir.publish}" includes="${style.css}, ${scripts.js}"/>
578  
-            </sourcefiles>
579  
-            <targetfiles>
580  
-                <fileset dir="${dir.intermediate}" includes="${page-files}"/>
581  
-            </targetfiles>
582  
-        </outofdate>
583  
-
584  
-        <!-- force the files to be overwritten with older copies from source if needhtmlrefresh is set -->
585  
-        <copy todir="${dir.intermediate}" overwrite="${needhtmlrefresh}">
586  
-            <fileset dir="${dir.source}" includes="${page-files}"/>
587  
-        </copy>
588  
-
589  
-        <!-- switch from a regular jquery to minified -->
590  
-        <replaceregexp match="jquery-(\d|\d(\.\d)+)\.js" replace="jquery-\1.min.js" flags="g">
591  
-            <fileset dir="./${dir.intermediate}" includes="${page-files}"/>
592  
-        </replaceregexp>
593  
-        <!-- switch any google CDN reference to minified -->
594  
-        <replaceregexp match="(\d|\d(\.\d)+)\/jquery\.js" replace="\1/jquery.min.js" flags="g">
595  
-            <fileset dir="./${dir.intermediate}" includes="${page-files}"/>
596  
-        </replaceregexp>
597  
-
598  
-        <echo>Kill off those versioning flags: ?v=2</echo>
599  
-        <replaceregexp match='\?v=\d+">' replace='">' flags="g">
600  
-            <fileset dir="./${dir.intermediate}" includes="${page-files}"/>
601  
-        </replaceregexp>
602  
-
603  
-        <echo>Remove favicon.ico reference if it is pointing to the root</echo>
604  
-        <replaceregexp match="&lt;link rel=[&quot;']shortcut icon[&quot;'] href=[&quot;']/favicon\.ico[&quot;']&gt;" replace="">
605  
-            <fileset dir="${dir.intermediate}" includes="${page-files}"/>
606  
-        </replaceregexp>
607  
-        <!-- we maintain the apple-touch-icon reference for Android 2.2   www.ravelrumba.com/blog/android-apple-touch-icon
608  
-        <replace token="&lt;link rel=&quot;apple-touch-icon&quot; href=&quot;/apple-touch-icon.png&quot;>" value="">
609  
-            <fileset dir="${dir.intermediate}" includes="${page-files}"/>
610  
-        </replace>
611  
-        -->
612  
-
613  
-        <echo message="Update the HTML to reference our concatenated script file: ${scripts.js}"/>
614  
-        <!-- style.css replacement handled as a replacetoken above -->
615  
-        <replaceregexp match="&lt;!-- scripts concatenated [\d\w\s\W]*&lt;script.*src=['&quot;]?(.*)/${file.root.script}(?:\?.*)?['&quot;]?\s*&gt;\s*&lt;/script&gt;[\d\w\s\W]*&lt;!-- end ((scripts)|(concatenated and minified scripts))\s*--&gt;"
616  
-        	replace="&lt;script defer src='\1/${scripts.sha}.js\'&gt;&lt;/script&gt;" flags="m">
617  
-            <fileset dir="${dir.intermediate}" includes="${page-files}"/>
618  
-        </replaceregexp>
619  
-        <!--[! use comments like this one to avoid having them get minified -->
620  
-
621  
-        <echo message="Updating the HTML with the new css filename: ${style.css}"/>
622  
-
623  
-        <replaceregexp match="&lt;link rel=['&quot;]?stylesheet['&quot;]?\s+href=['&quot;]?(.*)/${file.root.stylesheet}(?:\?.*)?['&quot;]?\s*&gt;"
624  
-        	replace="&lt;link rel='stylesheet' href='\1/${css.sha}.css'&gt;" flags="m">
625  
-            <fileset dir="${dir.intermediate}" includes="${page-files}"/>
626  
-        </replaceregexp>
627  
-
628  
-    </target>
629  
-
630  
-
631  
-    <target name="-manifest" depends="-usemin">
632  
-        <if>
633  
-            <isset property="file.manifest" />
634  
-            <then>
635  
-                <echo message="copying a fresh ${dir.build}/config/${file.manifest} to /${dir.intermediate}"/>
636  
-
637  
-                <delete file="${dir.intermediate}/${file.manifest}"/>
638  
-                <copy file="${dir.build}/config/${file.manifest}" tofile="${dir.intermediate}/${file.manifest}" />
639  
-
640  
-                <echo message="manifest creation" />
641  
-
642  
-                <!-- update version -->
643  
-                <echo message="Updating the site.manifest version date to today, current time"/>
644  
-                <tstamp>
645  
-                    <format property="TODAY" pattern="yyyy-MM-dd HH:mm:ss"/>
646  
-                </tstamp>
647  
-                <replaceregexp match="# version .+" replace="# version ${TODAY}" file="${dir.intermediate}/${file.manifest}"/>
648  
-
649  
-                <!-- add html files -->
650  
-                <echo message="Updating the site.manifest with html files: ${page-files}"/>
651  
-                <for list="${page-files}" param="file" delimiter="," trim="true">
652  
-                    <sequential>
653  
-                        <replaceregexp match="# html files" replace="# html files${line.separator}@{file}" file="${dir.intermediate}/${file.manifest}" />
654  
-                    </sequential>
655  
-                </for>
656  
-
657  
-                <!-- add stylesheet files -->
658  
-                <echo message="Updating the site.manifest with the new css filename: ${style.css}"/>
659  
-                <replace token="# css files" value="# css files${line.separator}${style.css}" file="${dir.intermediate}/${file.manifest}" />
660  
-
661  
-                <!-- add javascript files -->
662  
-                <echo message="Updating the site.manifest with the new js filename: ${scripts.js}"/>
663  
-                <for param="file">
664  
-                    <path>
665  
-                        <fileset dir="./${dir.intermediate}/${dir.js.mylibs}/"
666  
-                            includes="${file.js.bypass}" />
667  
-                    </path>
668  
-                    <sequential>
669  
-                        <basename property="filename.@{file}" file="@{file}" />
670  
-                        <replaceregexp match="# js files" replace="# js files${line.separator}${dir.js.mylibs}/${filename.@{file}}" file="${dir.intermediate}/${file.manifest}" />
671  
-                    </sequential>
672  
-                </for>
673  
-                <for param="file">
674  
-                    <path>
675  
-                        <fileset dir="./${dir.intermediate}/${dir.js.libs}/"
676  
-                            includes="*.min.js"/>
677  
-                    </path>
678  
-                    <sequential>
679  
-                        <basename property="filename.@{file}" file="@{file}" />
680  
-                        <replaceregexp match="# js files" replace="# js files${line.separator}${dir.js.libs}/${filename.@{file}}" file="${dir.intermediate}/${file.manifest}" />
681  
-                    </sequential>
682  
-                </for>
683  
-                <replace token="# js files" value="# js files${line.separator}${scripts.js}" file="${dir.intermediate}/${file.manifest}" />
684  
-
685  
-                <!-- add image files -->
686  
-                <echo message="Updating the site.manifest with the images"/>
687  
-                <for param="file">
688  
-                    <path>
689  
-                        <fileset dir="./${dir.source}/${dir.images}/" includes="**/*"/>
690  
-                    </path>
691  
-                    <sequential>
692  
-                        <basename property="filename.@{file}" file="@{file}" />
693  
-                        <replaceregexp match="# image files" replace="# image files${line.separator}${dir.images}/${filename.@{file}}" file="${dir.intermediate}/${file.manifest}" />
694  
-                    </sequential>
695  
-                </for>
696  
-
697  
-                <echo message="copying ${file.manifest} to /${dir.publish}"/>
698  
-                <copy file="${dir.intermediate}/${file.manifest}" tofile="${dir.publish}/${file.manifest}" />
699  
-
700  
-                <echo>Add manifest attribute to HTML: </echo>
701  
-                <replaceregexp match="&lt;html (.*?)>\s*?&lt;!--&lt;!\[endif" replace='&lt;html \1 manifest="${file.manifest}"> &lt;!--&lt;![endif' flags="g">
702  
-                    <fileset dir="./${dir.intermediate}" includes="${page-files}"/>
703  
-                </replaceregexp>
704  
-
705  
-            </then>
706  
-            <else>
707  
-                <echo message="no manifest.appcache generated!" />
708  
-            </else>
709  
-        </if>
710  
-    </target>
711  
-
712  
-    <target name="-htmlclean" depends="-usemin">
713  
-        <echo message="Run htmlcompressor on the HTML"/>
714  
-        <echo message=" - maintaining whitespace"/>
715  
-        <echo message=" - removing html comments"/>
716  
-        <echo message=" - compressing inline style/script tag contents"/>
717  
-        <apply executable="java" parallel="false" dest="./${dir.publish}/" >
718  
-            <fileset dir="./${dir.intermediate}/" includes="${page-files}"/>
719  
-            <arg value="-jar"/>
720  
-            <arg path="./${dir.build.tools}/${tool.htmlcompressor}"/>
721  
-            <arg line="--preserve-multi-spaces"/>
722  
-            <arg line="--remove-quotes"/>
723  
-            <arg line="--compress-js"/>
724  
-            <arg line="--compress-css"/>
725  
-            <arg line="--preserve-php"/>
726  
-            <arg line="--preserve-ssi"/>
727  
-            <srcfile/>
728  
-            <arg value="-o"/>
729  
-            <mapper type="glob" from="*" to="../${dir.publish}/*"/>
730  
-            <targetfile/>
731  
-        </apply>
732  
-    </target>
733  
-
734  
-
735  
-    <target name="-htmlbuildkit" depends="-usemin">
736  
-        <echo message="Run htmlcompressor on the HTML"/>
737  
-        <echo message=" - maintaining whitespace"/>
738  
-        <echo message=" - retain html comments"/>
739  
-        <echo message=" - compressing inline style/script tag contents"/>
740  
-        <apply executable="java" parallel="false" dest="./${dir.publish}/" >
741  
-            <fileset dir="./${dir.intermediate}/" includes="${page-files}"/>
742  
-            <arg value="-jar"/>
743  
-            <arg path="./${dir.build.tools}/${tool.htmlcompressor}"/>
744  
-            <arg value="--preserve-comments"/>
745  
-            <arg line="--preserve-multi-spaces"/>
746  
-            <arg line="--compress-js"/>
747  
-            <arg line="--compress-css"/>
748  
-            <arg line="--preserve-php"/>
749  
-            <arg line="--preserve-ssi"/>
750  
-            <srcfile/>
751  
-            <arg value="-o"/>
752  
-            <mapper type="glob" from="*" to="../${dir.publish}/*"/>
753  
-            <targetfile/>
754  
-        </apply>
755  
-    </target>
756  
-
757  
-
758  
-    <target name="-htmlcompress" depends="-usemin">
759  
-        <echo message="Run htmlcompressor on the HTML"/>
760  
-        <echo message=" - removing unnecessary whitespace"/>
761  
-        <echo message=" - removing html comments"/>
762  
-        <echo message=" - compressing inline style/script tag contents"/>
763  
-        <apply executable="java" parallel="false" dest="./${dir.publish}/" >
764  
-            <fileset dir="./${dir.intermediate}/" includes="${page-files}"/>
765  
-            <arg value="-jar"/>
766  
-            <arg path="./${dir.build.tools}/${tool.htmlcompressor}"/>
767  
-            <arg line="--remove-quotes"/>
768  
-            <arg line="--compress-js"/>
769  
-            <arg line="--compress-css"/>
770  
-            <arg line="--preserve-php"/>
771  
-            <arg line="--preserve-ssi"/>
772  
-            <srcfile/>
773  
-            <arg value="-o"/>
774  
-            <mapper type="glob" from="*" to="../${dir.publish}/*"/>
775  
-            <targetfile/>
776  
-        </apply>
777  
-    </target>
778  
-
779  
-
780  
-    <!-- CSS -->
781  
-
782  
-    <target name="-css-remove-concatenated-stylesheets">
783  
-            <echo>Removing ${css_file} from html</echo>
784  
-            <replaceregexp match="&lt;link.+href=&quot;.*${css_file}&quot;.*&gt;" replace="  ">
785  
-                <fileset dir="${dir.intermediate}" includes="${page-files}"/>
786  
-            </replaceregexp>
787  
-    </target>
788  
-
789  
-
790  
-    <target name="css-split" description="turns style.css into multiple files @imported together">
791  
-        <copy file="${dir.source}/${dir.css}/${file.root.stylesheet}" tofile="${dir.source}/${dir.css}/${file.root.stylesheet}.temp"/>
792  
-
793  
-        <replaceregexp file="${dir.source}/${dir.css}/${file.root.stylesheet}.temp"
794  
-               match=".*"
795  
-               replace="/* remove me */" flags="s" />
796  
-
797  
-        <loadfile property="root" srcfile="${dir.source}/${dir.css}/${file.root.stylesheet}"/>
798  
-        <var name="curr.buffer" value=""/>
799  
-
800  
-        <for delimiter="${line.separator}" param="currline" list="${root}">
801  
-            <sequential>
802  
-                <!-- does this line contain an h5bp-import? -->
803  
-                <propertyregex property="export.name" input="@{currline}" regexp="^.*==\|== +(.*) +==+$" select="\1" casesensitive="true" override="true" />
804  
-                <if>
805  
-                    <isset property="export.name"/>
806  
-                    <then>
807  
-                        <propertyregex property="export.name" input="${export.name}" regexp=" " replace="." global="true" override="true" />
808  
-                        <var name="export.name" value="${export.name}.css"/>
809  
-
810  
-                        <if>
811  
-                            <isset property="curr.file"/>
812  
-                            <then>
813  
-                                <!-- create curr.file -->
814  
-                                <copy file="${dir.source}/${dir.css}/${file.root.stylesheet}" tofile="${dir.source}/${dir.css}/${curr.file}" overwrite="true"/>
815  
-                                <!-- write the curr.buffer into the curr.file -->
816  
-                                <replaceregexp file="${dir.source}/${dir.css}/${curr.file}"
817  
-                                       match=".*"
818  
-                                       replace="${curr.buffer}" flags="s" />
819  
-
820  
-                                <var name="curr.buffer" value=""/>
821  
-                                <var name="curr.file" unset="true"/>
822  
-                            </then>
823  
-                        </if>
824  
-                        <var name="curr.file" value="${export.name}"/>
825  
-                        <var name="export.name" unset="true"/>
826  
-
827  
-                        <!-- insert import line into new root -->
828  
-                        <replace file="${dir.source}/${dir.css}/${file.root.stylesheet}.temp" token="/* remove me */" value="@import url(${curr.file});${line.separator}/* remove me */"/>
829  
-                    </then>
830  
-                </if>
831  
-                <var name="curr.buffer" value="${curr.buffer}@{currline}${line.separator}" />
832  
-            </sequential>
833  
-        </for>
834  
-        <!-- one more time to write out the last file -->
835  
-        <if>
836  
-            <isset property="curr.file"/>
837  
-            <then>
838  
-                <!-- create curr.file -->
839  
-                <copy file="${dir.source}/${dir.css}/${file.root.stylesheet}" tofile="${dir.source}/${dir.css}/${curr.file}" overwrite="true"/>
840  
-                <!-- write the curr.buffer into the curr.file -->
841  
-                <replaceregexp file="${dir.source}/${dir.css}/${curr.file}"
842  
-                       match=".*"
843  
-                       replace="${curr.buffer}" flags="s" />
844  
-
845  
-                <var name="curr.buffer" value=""/>
846  
-                <var name="curr.file" unset="true"/>
847  
-            </then>
848  
-        </if>
849  
-        <replace file="${dir.source}/${dir.css}/${file.root.stylesheet}.temp" token="/* remove me */" value="${curr.buffer}"/>
850  
-        <copy file="${dir.source}/${dir.css}/${file.root.stylesheet}" tofile="${dir.source}/${dir.css}/${file.root.stylesheet}.orig" overwrite="false"/>
851  
-        <move file="${dir.source}/${dir.css}/${file.root.stylesheet}.temp" tofile="${dir.source}/${dir.css}/${file.root.stylesheet}" overwrite="false"/>
852  
-    </target>
853  
-
854  
-    <target name="-css" depends="-mkdirs" description="Concatenates and Minifies any stylesheets @imported via the file.stylesheets">
855  
-        <echo message="Concatenating any @imports..."/>
856  
-
857  
-        <!-- copy source file to intermediate directory -->
858  
-        <copy file="${dir.source}/${dir.css}/${file.root.stylesheet}" tofile="${dir.intermediate}/${dir.css}/${file.root.stylesheet}"/>
859  
-
860  
-        <!-- replace imports with h5bp-import tags (part 1) this one wraps @media types -->
861  
-        <replaceregexp file="${dir.intermediate}/${dir.css}/${file.root.stylesheet}"
862  
-                        match="^@import\s+(?:url\s*\(\s*['&quot;]?|['&quot;])((?!http:|https:|ftp:|\/\/)[^&quot;^'^\s]+)(?:['&quot;]?\s*\)|['&quot;])\s*([\w\s\(\)\d\:,\-]*);.*$"
863  
-                       replace="@media \2{ /* h5bp-import: \1 */ }" byline="true" />
864  
-
865  
-        <!-- replace imports with h5bp-import tags (part 2) -->
866  
-        <replaceregexp file="${dir.intermediate}/${dir.css}/${file.root.stylesheet}"
867  
-                       match="^@media \{ (/\* .* \*/) \}" replace="\1" byline="true" />
868  
-
869  
-        <!-- copy skeleton to concat file -->
870  
-        <copy file="${dir.intermediate}/${dir.css}/${file.root.stylesheet}"
871  
-              tofile="${dir.intermediate}/${dir.css}/style-concat.css" overwrite="true"/>
872  
-
873  
-        <!-- load the file into a property -->
874  
-        <loadfile property="imports" srcfile="${dir.intermediate}/${dir.css}/${file.root.stylesheet}"/>
875  
-
876  
-        <var name="concat-files" value="${file.root.stylesheet}"/>
877  
-
878  
-        <!-- go over the file line by line -->
879  
-        <for delimiter="${line.separator}" param="import" list="${imports}">
880  
-            <sequential>
881  
-                <!-- does this line contain an h5bp-import? -->
882  
-                <propertyregex property="file.name" input="@{import}" regexp="/\* h5bp-import: (.*) \*/" select="\1" casesensitive="true" override="true" />
883  
-
884  
-                <if>
885  
-                    <isset property="file.name"/>
886  
-                    <then>
887  
-                        <var name="concat-files" value="${file.name},${concat-files}"/>
888  
-
889  
-                        <!-- load the file into a variable -->
890  
-                        <loadfile property="file.contents" srcFile="${dir.source}/${dir.css}/${file.name}"/>
891  
-
892  
-                        <!-- pop that file into the concatenated output file -->
893  
-                        <replace file="${dir.intermediate}/${dir.css}/style-concat.css" token="/* h5bp-import: ${file.name} */" value="${file.contents}"/>
894  
-
895  
-                        <var name="file.contents" unset="true"/>
896  
-                    </then>
897  
-                </if>
898  
-            </sequential>
899  
-        </for>
900  
-        <echo message="Minifying css..."/>
901  
-
902  
-        <apply executable="java" parallel="false">
903  
-            <fileset dir="${dir.intermediate}/${dir.css}/" includes="style-concat.css"/>
904  
-            <arg line="-jar"/>
905  
-            <arg path="${dir.build.tools}/${tool.yuicompressor}"/>
906  
-            <srcfile/>
907  
-            <arg line="-o"/>
908  
-            <mapper type="merge" to="${basedir}/${dir.intermediate}/${dir.css}/style-concat.min.css"/>
909  
-            <targetfile/>
910  
-        </apply>
911  
-
912  
-        <checksum file="${dir.intermediate}/${dir.css}/style-concat.min.css" algorithm="sha" property="css.fullsha" />
913  
-        <propertyregex property="css.sha" input="${css.fullsha}" regexp=".{${hash.length}}" select="\0" />
914  
-        <property name="style.css" value="${dir.css}/${css.sha}.css" />
915  
-        <copy file="${dir.intermediate}/${dir.css}/style-concat.min.css" tofile="${dir.publish}/${dir.css}/${css.sha}.css" />
916  
-
917  
-        <echo message="Minifying any unconcatenated css files..."/>
918  
-
919  
-        <apply executable="java" parallel="false">
920  
-            <fileset dir="${dir.source}/${dir.css}/" excludes="${concat-files}" includes="**/*.css"/>
921  
-            <arg line="-jar"/>
922  
-            <arg path="${dir.build.tools}/${tool.yuicompressor}"/>
923  
-            <srcfile/>
924  
-            <arg line="-o"/>
925  
-            <mapper type="glob" from="*.css" to="${basedir}/${dir.publish}/${dir.css}/*.css"/>
926  
-            <targetfile/>
927  
-        </apply>
928  
-        <foreach list="${file.stylesheets}" param="css_file" target="-css-remove-concatenated-stylesheets" />
929  
-    </target>
930  
-
931  
-
932  
-    <!-- IMAGES -->
933  
-    <target name="-imagespng" depends="-mkdirs" description="(PRIVATE) Optimizes .png images using optipng">
934  
-        <echo message="Optimizing images..."/>
935  
-        <echo message="This part might take a while. But everything else is already done."/>
936  
-        <echo message=" "/>
937  
-
938  
-
939  
-        <echo message="First, we run optipng on the .png files..."/>
940  
-
941  
-        <!-- osfamily=unix is actually true on OS X as well -->
942  
-        <!-- On *nix's and OS X, check for optipng and give a helpful message if it's not installed -->
943  
-        <if>
944  
-            <and>
945  
-                <os family="unix" />
946  
-                <available file="optipng" filepath="${ENV.PATH}" />
947  
-            </and>
948  
-            <then>
949  
-                <!-- work around https://sourceforge.net/tracker/?func=detail&aid=2671422&group_id=151404&atid=780916 -->
950  
-                <delete>
951  
-                    <fileset dir="./${dir.publish}/${dir.images}/">
952  
-                        <include name="**/*.png"/>
953  
-                    </fileset>
954  
-                </delete>
955  
-                <apply executable="optipng" dest="./${dir.publish}/${dir.images}/" osfamily="unix">
956  
-                    <fileset dir="./${dir.source}/${dir.images}/" includes="**/*.png"  excludes="${images.bypass}, ${images.default.bypass}"/>
957  
-                    <arg value="-quiet"/>
958  
-                    <arg value="-o7"/>
959  
-                    <arg value="-out"/>
960  
-                    <targetfile/>
961  
-                    <srcfile/>
962  
-                    <mapper type="identity"/>
963  
-                </apply>
964  
-            </then>
965  
-            <elseif>
966  
-                <os family="unix" />
967  
-                <then>
968  
-                    <echo message="*** optipng NOT INSTALLED. SKIPPING OPTIMIZATION OF PNGs." />
969  
-                    <echo message="*** Install optipng to enable png optimization." />
970  
-                    <echo message="*** For instructions see 'Dependencies' at: http://html5boilerplate.com/docs/#Build-script#dependencies" />
971  
-                </then>
972  
-            </elseif>
973  
-            <elseif>
974  
-                <os family="windows" />
975  
-                <!-- work around https://sourceforge.net/tracker/?func=detail&aid=2671422&group_id=151404&atid=780916 -->
976  
-                <delete>
977  
-                    <fileset dir="./${dir.publish}/${dir.images}/">
978  
-                        <include name="**/*.png"/>
979  
-                    </fileset>
980  
-                </delete>
981  
-                <apply executable="${basedir}/${dir.build.tools}/optipng-0.6.4-exe/optipng.exe" dest="./${dir.publish}/${dir.images}/" osfamily="windows">
982  
-                    <fileset dir="./${dir.source}/${dir.images}/" includes="**/*.png"  excludes="${images.bypass}, ${images.default.bypass}"/>
983  
-                    <arg value="-quiet"/>
984  
-                    <arg value="-o7"/>
985  
-                    <arg value="-out"/>
986  
-                    <targetfile/>
987  
-                    <srcfile/>
988  
-                    <mapper type="identity"/>
989  
-                </apply>
990  
-            </elseif>
991  
-        </if>
992  
-    </target>
993  
-
994  
-
995  
-    <target name="-imagesjpg" depends="-mkdirs" description="(PRIVATE) Optimizes .jpg images using jpegtan">
996  
-        <echo message="Now, we clean up those jpgs..."/>
997  
-
998  
-        <if>
999  
-            <equals arg1="${images.strip.metadata}" arg2="true"/>
1000  
-            <then>
1001  
-                <var name="strip-meta-tags" value="none"/>
1002  
-            </then>
1003  
-            <else>
1004  
-                <var name="strip-meta-tags" value="all"/>
1005  
-            </else>
1006  
-        </if>
1007  
-
1008  
-        <!-- On *nix's and OS X, check for jpegtran and give a helpful message if it's not installed -->
1009  
-        <if>
1010  
-            <and>
1011  
-                <os family="unix" />
1012  
-                <available file="jpegtran" filepath="${ENV.PATH}" />
1013  
-            </and>
1014  
-            <then>
1015  
-                <apply executable="jpegtran" dest="./${dir.publish}/${dir.images}" osfamily="unix">
1016  
-                    <fileset dir="${dir.source}/${dir.images}" includes="**/*.jpg" excludes="${images.bypass}, ${images.default.bypass}"/>
1017  
-                    <arg value="-copy"/>
1018  
-                    <arg value="${strip-meta-tags}"/>
1019  
-                    <arg value="-optimize"/>
1020  
-                    <arg value="-outfile"/>
1021  
-                    <targetfile/>
1022  
-                    <srcfile/>
1023  
-                    <mapper type="identity"/>
1024  
-                    <!-- you may want to flag optimized images. If so, do it here. Otherwise change this to type="identity" -->
1025  
-                    <!--<mapper type="glob" from="*.jpg" to="*.jpg"/>-->
1026  
-                </apply>
1027