Skip to content

Commit

Permalink
Included build stuff.
Browse files Browse the repository at this point in the history
  • Loading branch information
lrsjng committed Jun 23, 2011
1 parent df94759 commit d37ff20
Show file tree
Hide file tree
Showing 253 changed files with 748 additions and 299 deletions.
47 changes: 47 additions & 0 deletions .gitignore
@@ -0,0 +1,47 @@

# Build folders to ignore
bin
build
#target

# Eclipse
.classpath
.ant-targets-build.xml

# Numerous always-ignore extensions
*.diff
*.err
*.orig
*.log
*.rej
*.swo
*.swp
*.vi
*~
*.sass-cache

# OS or Editor folders
.DS_Store
.cache
.project
.settings
.tmproj
nbproject
Thumbs.db

# Dreamweaver added files
_notes
dwsync.xml

# Komodo
*.komodoproject
.komodotools

# Folders to ignore
.hg
.svn
.CVS
intermediate
publish
.idea

33 changes: 22 additions & 11 deletions README.md
@@ -1,5 +1,6 @@
h5ai - a beautified Apache index
================================
h5ai v0.3 - a beautified Apache index
=====================================


Screenshots
-----------
Expand All @@ -23,9 +24,10 @@ View a [sample folder](http://repo.larsjung.de/h5ai-sample)
Install
-------

* Copy the `h5ai` folder to the web-root directory of your server or alternativly set an alias `/h5ai/` to
* Everything you need is located in folder `target`.
* Copy folder `h5ai` to the web-root directory of your server or alternativly set an alias `/h5ai/` to
this folder.
* Add the content of file `dot.htaccess` to the `.htaccess` file in the directory
* Add the content of file `dot.htaccess` to the `.htaccess` file inside the directory
you want to be styled (you might have to create this file). This directory and any subdirectories will be
styled by h5ai.
* Optionally add `h5ai.header.html` and/or `h5ai.footer.html` files to any of the styled folders to [display
Expand All @@ -36,6 +38,14 @@ Install
Changelog
---------

### v0.3
*2011-06-23*

* included build stuff, files previously found in the base directory are now located in folder `target`
* styles and scripts are now minified
* added Modernizr 2.0.4 for future use
* updated jQuery to version 1.6.1


### v0.2.3
*2011-06-17*
Expand Down Expand Up @@ -77,12 +87,13 @@ Author
License
-------

<a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/"><img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/88x31.png" /></a>

This project is licensed under the [CC BY-SA 3.0 License](http://creativecommons.org/licenses/by-sa/3.0/).


It is based on the awesome [HTML5 Boilerplate](http://html5boilerplate.com) and the beautiful
[Faenza icon set](http://tiheum.deviantart.com/art/Faenza-Icons-173323228), please respect their rights.
<a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/"><img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/88x31.png" /></a>
This project is licensed under the [CC BY-SA 3.0 License](http://creativecommons.org/licenses/by-sa/3.0/).
It is based on
[HTML5 Boilerplate](http://html5boilerplate.com),
[jQuery](http://jquery.com),
[Modernizr](http://www.modernizr.com) and
[Faenza icon set](http://tiheum.deviantart.com/art/Faenza-Icons-173323228),
please respect their rights.


19 changes: 19 additions & 0 deletions build.properties
@@ -0,0 +1,19 @@
custom = true


# project
project.name = h5ai
project.version = 0.3


# src
src.dir = src


# build
build.dir = target


# libs
lib.scripp.jar = tools/scripp.jar

58 changes: 58 additions & 0 deletions build.xml
@@ -0,0 +1,58 @@
<?xml version="1.0" encoding="utf-8"?>
<project
name="h5ai"
basedir="."
xmlns:scripp="antlib:de.larsjung.scripp.ant"
>
<target name="init">
<property file="build.properties" />
<tstamp>
<format property="build.stamp" pattern="yyyy-MM-dd-HHmmss" />
</tstamp>
<property name="build.label" value="${project.name} ${project.version} b${build.stamp}" />
<echo>Build: ${build.label}</echo>
<taskdef
resource="de/larsjung/scripp/ant/antlib.xml"
uri="antlib:de.larsjung.scripp.ant"
classpath="${lib.scripp.jar}"
/>
</target>


<target name="clean" depends="init">
<delete dir="${build.dir}" />
</target>


<target name="build" depends="clean">
<mkdir dir="${build.dir}" />
<copy todir="${build.dir}">
<fileset dir="${src.dir}" />
</copy>
<replace dir="${build.dir}">
<replacefilter token="%BUILD%" value="${build.label}" />
<replacefilter token="%BUILD_NAME%" value="${project.name}" />
<replacefilter token="%BUILD_VERSION%" value="${project.version}" />
<replacefilter token="%BUILD_STAMP%" value="${build.stamp}" />
</replace>

<scripp.dir dir="${build.dir}/h5ai/css" />
<scripp.dir dir="${build.dir}/h5ai/js" />
</target>


<macrodef name="scripp.dir">
<attribute name="dir" />
<sequential>
<scripp:process>
<fileset dir="@{dir}" includes="**/*.less,**/*.css,**/*.js" excludes="inc/**/*,**/*.min.css,**/*.min.js" />
<globmapper from="*.less" to="*.css" />
<globmapper from="*.css" to="*.css" />
<globmapper from="*.js" to="*.js" />
</scripp:process>
<delete dir="@{dir}/inc">
<fileset dir="@{dir}" includes="**/*.less" />
</delete>
</sequential>
</macrodef>
</project>
16 changes: 0 additions & 16 deletions h5ai/lib/jquery-1.5.min.js

This file was deleted.

0 comments on commit d37ff20

Please sign in to comment.