mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-30 15:05:15 -04:00
Added it translation. Switched to wepp.
This commit is contained in:
parent
8e21a3c038
commit
a8f62f187c
10 changed files with 84 additions and 44 deletions
|
@ -10,6 +10,12 @@ It uses the [Faenza icon set](http://tiheum.deviantart.com/art/Faenza-Icons-1733
|
|||
## Changelog
|
||||
|
||||
|
||||
### v0.15.2 · *2011-09-18*
|
||||
|
||||
* added it translation by [Salvo Gentile](http://github.com/SalvoGentile) and [Marco Patriarca](http://github.com/Fexys)
|
||||
* switched build process from scripp to wepp
|
||||
|
||||
|
||||
### v0.15.1 · *2011-09-06*
|
||||
|
||||
* fixed security issues with the zipped download feature
|
||||
|
|
|
@ -1,20 +1,20 @@
|
|||
custom = true
|
||||
custom = true
|
||||
|
||||
|
||||
# project
|
||||
project.name = h5ai
|
||||
project.version = 0.15.1
|
||||
project.name = h5ai
|
||||
project.version = 0.15.2
|
||||
|
||||
|
||||
# src
|
||||
src.dir = src
|
||||
src.dir = src
|
||||
|
||||
|
||||
# build
|
||||
build.dir = build
|
||||
release.dir = release
|
||||
build.dir = build
|
||||
release.dir = release
|
||||
|
||||
|
||||
# libs
|
||||
lib.scripp.jar = tools/scripp.jar
|
||||
# tools
|
||||
wepp = tools/wepp
|
||||
|
||||
|
|
38
build.xml
38
build.xml
|
@ -3,8 +3,10 @@
|
|||
name="h5ai"
|
||||
basedir="."
|
||||
default="release"
|
||||
xmlns:scripp="antlib:de.larsjung.scripp.ant"
|
||||
>
|
||||
|
||||
<import file="tools/wepp.ant.xml" />
|
||||
|
||||
<target name="init">
|
||||
<property file="build.properties" />
|
||||
<tstamp>
|
||||
|
@ -12,20 +14,13 @@
|
|||
</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}" />
|
||||
<delete dir="${release.dir}" />
|
||||
</target>
|
||||
|
||||
|
||||
<target name="build-prepare" depends="clean">
|
||||
<mkdir dir="${build.dir}" />
|
||||
<copy todir="${build.dir}">
|
||||
|
@ -41,19 +36,16 @@
|
|||
</replace>
|
||||
</target>
|
||||
|
||||
|
||||
<target name="build" depends="build-prepare">
|
||||
<scripp.dir dir="${build.dir}/h5ai/css" />
|
||||
<scripp.dir dir="${build.dir}/h5ai/js" />
|
||||
<wepp.dir dir="${build.dir}/h5ai/css" />
|
||||
<wepp.dir dir="${build.dir}/h5ai/js" />
|
||||
</target>
|
||||
|
||||
|
||||
<target name="build-uncompressed" depends="build-prepare">
|
||||
<scripp.dir dir="${build.dir}/h5ai/css" compress="false" />
|
||||
<scripp.dir dir="${build.dir}/h5ai/js" compress="false" />
|
||||
<wepp.dir dir="${build.dir}/h5ai/css" args="--nc" />
|
||||
<wepp.dir dir="${build.dir}/h5ai/js" args="--nc" />
|
||||
</target>
|
||||
|
||||
|
||||
<target name="release" depends="build">
|
||||
<mkdir dir="${release.dir}" />
|
||||
<zip destfile="${release.dir}/${project.name}-${project.version}.zip" basedir="${build.dir}" />
|
||||
|
@ -62,20 +54,4 @@
|
|||
<delete file="${release.dir}/${project.name}-${project.version}.tar" />
|
||||
</target>
|
||||
|
||||
|
||||
<macrodef name="scripp.dir">
|
||||
<attribute name="dir" />
|
||||
<attribute name="compress" default="true" />
|
||||
<sequential>
|
||||
<scripp:process compress="@{compress}">
|
||||
<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>
|
||||
|
|
Binary file not shown.
BIN
release/h5ai-0.15.2.tar.gz
Normal file
BIN
release/h5ai-0.15.2.tar.gz
Normal file
Binary file not shown.
Binary file not shown.
|
@ -234,9 +234,9 @@ h5aiLangs = {
|
|||
"size": "Boyut",
|
||||
"parentDirectory": "Üst Dizin",
|
||||
"empty": "boş",
|
||||
"folders": "folders",
|
||||
"files": "files",
|
||||
"download": "download"
|
||||
"folders": "klasörler",
|
||||
"files": "dosyalar",
|
||||
"download": "indir"
|
||||
},
|
||||
|
||||
"pt": {
|
||||
|
@ -278,7 +278,7 @@ h5aiLangs = {
|
|||
"empty": "tukšs",
|
||||
"folders": "mapes",
|
||||
"files": "faili",
|
||||
"download": "download"
|
||||
"download": "lejupielādēt"
|
||||
},
|
||||
|
||||
"zh-cn": {
|
||||
|
@ -321,5 +321,19 @@ h5aiLangs = {
|
|||
"folders": "папки",
|
||||
"files": "файлы",
|
||||
"download": "download"
|
||||
}
|
||||
},
|
||||
|
||||
"it": {
|
||||
"lang": "italiano",
|
||||
"details": "dettagli",
|
||||
"icons": "icone",
|
||||
"name": "Nome",
|
||||
"lastModified": "Ultima modifica",
|
||||
"size": "Dimensione",
|
||||
"parentDirectory": "Cartella Superiore",
|
||||
"empty": "vuota",
|
||||
"folders": "cartelle",
|
||||
"files": "file",
|
||||
"download": "download"
|
||||
}
|
||||
};
|
||||
|
|
BIN
tools/scripp.jar
BIN
tools/scripp.jar
Binary file not shown.
4
tools/wepp
Executable file
4
tools/wepp
Executable file
|
@ -0,0 +1,4 @@
|
|||
#! /usr/bin/env node
|
||||
// -*- js -*-
|
||||
|
||||
require("wepp").processArgs(process.argv);
|
40
tools/wepp.ant.xml
Normal file
40
tools/wepp.ant.xml
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue