Permalink
Browse files

Move theme into dist dir and add theme images.

  • Loading branch information...
1 parent dc6021b commit 7226d96c681d09bc28a096ed6eba395e7757a2d9 @MarkBennett committed Feb 15, 2011
Showing with 11 additions and 3 deletions.
  1. +11 −3 build.xml
  2. 0 src/theme/images/sample.png
View
@@ -9,7 +9,8 @@
<property name="js-engine" value="node" />
<property name="js-compiler" value="build/uglify.js" />
<property name="theme" location="${src}/theme" />
- <property name="dist-css-file" location="${dist}/theme.css" />
+ <property name="dist-theme-dir" location="${dist}/theme" />
+ <property name="dist-css-file" location="${dist-theme-dir}/theme.css" />
<target name="test">
<exec executable="phantomjs" error="/dev/null">
@@ -41,6 +42,7 @@
<target name="dist-init">
<mkdir dir="${dist}" />
+ <mkdir dir="${dist-theme-dir}" />
<exec executable="date" outputProperty="dist-date" logError="true" />
<exec executable="cat" outputProperty="dist-version" logError="true">
@@ -82,7 +84,7 @@
</exec>
</target>
- <target name="concat-css">
+ <target name="concat-theme-css">
<echo message="Concatinating css..." />
<concat destfile="${dist-css-file}">
<filelist dir="${theme}" files="intro.css" />
@@ -91,7 +93,13 @@
</concat>
</target>
- <target name="dist" depends="lint-js, minify-js, concat-css">
+ <target name="dist-theme" depends="concat-theme-css">
+ <copy todir="${dist-theme-dir}">
+ <fileset dir="${theme}" excludes="*.css" />
+ </copy>
+ </target>
+
+ <target name="dist" depends="lint-js, minify-js, dist-theme">
</target>
<target name="clean">
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7226d96

Please sign in to comment.