Skip to content

Commit

Permalink
Create build.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
bwbohl committed Jan 24, 2022
1 parent 9d25fe2 commit 0966349
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." name="bazga-csl">
<tstamp>
<format property="ant.tstamp.now.iso" pattern="yyyy-MM-dd'T'HH:mm:ssXXX"/>
</tstamp>
<exec command="git log -1 --pretty='format:%aI' src/bazga.csl" outputproperty="csl-mod.tstamp.iso"/>
<target name="props">
<echo message="${TSTAMP}"></echo>
<echo message="${DSTAMP}"></echo>
<echo message="${TODAY}"></echo>
<echo message="${ant.tstamp.now.iso}"></echo>
<echo message="${csl-mod.tstamp.iso}"></echo>
</target>
<target name="build" depends="clean">
<mkdir dir="build"/>
<copy todir="build" force="true" >
<file file="src/bazga.csl" />
<filterset begintoken="@" endtoken="@">
<filter token="DATE.PUBLICATION" value="${ant.tstamp.now.iso}"/>
<filter token="DATE.LAST-MOD" value="${csl-mod.tstamp.iso}"/>
</filterset>
</copy>
</target>
<target name="clean">
<delete dir="build"/>
</target>
</project>

0 comments on commit 0966349

Please sign in to comment.