1
0
mirror of https://github.com/lrsjng/h5ai.git synced 2025-08-19 12:11:28 +02:00

Added it translation. Switched to wepp.

This commit is contained in:
Lars Jung
2011-09-18 19:49:26 +02:00
parent 8e21a3c038
commit a8f62f187c
10 changed files with 84 additions and 44 deletions

Binary file not shown.

4
tools/wepp Executable file
View File

@@ -0,0 +1,4 @@
#! /usr/bin/env node
// -*- js -*-
require("wepp").processArgs(process.argv);

40
tools/wepp.ant.xml Normal file
View File

@@ -0,0 +1,40 @@
<?xml version="1.0" encoding="utf-8"?>
<project name="wepp.macros" basedir=".">
<macrodef name="wepp">
<attribute name="file" />
<attribute name="toFile" />
<attribute name="args" default="" />
<sequential>
<exec executable="${wepp}">
<arg line="@{args}" />
<arg value="--in" />
<arg value="@{file}" />
<arg value="--out" />
<arg value="@{toFile}" />
</exec>
</sequential>
</macrodef>
<macrodef name="wepp.dir">
<attribute name="dir" />
<attribute name="args" default="" />
<sequential>
<exec executable="${wepp}">
<arg line="@{args}" />
<arg value="--inDir" />
<arg value="@{dir}" />
<arg value="--outDir" />
<arg value="@{dir}" />
</exec>
<delete dir="@{dir}/inc">
<fileset
dir="."
includes="@{dir}/**/*.less"
excludes="@{dir}/inc/**,@{dir}/lib/**"
/>
</delete>
</sequential>
</macrodef>
</project>