~grubng-dev/grubng/tools-urlsdb

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?xml version="1.0"?>
    <project name="Grub Next Generation" default="build" basedir=".">
        <description>Grub Next Generation C# database tool.</description>
	<property name="version" value="1.0" overwrite="false" />
	<property name="debug" value="true" />
        <target name="clean" description="remove all generated files">
	    <delete dir="bin" failonerror="false" />
        </target>
        <target name="build" description="compiles source code">
	    <mkdir dir="bin" />
	    <csc target="exe" output="bin/urlsdb.exe" debug="${debug}" 
		 optimize="true" codepage="utf8">
              <sources>
                  <include name="**/*.cs" />
              </sources>
	      <references>
		  <include name="System.dll" />
		  <include name="System.Xml.dll" />
		  <include name="System.Data.dll" />
		  <include name="System.Web.dll" />
		  <include name="Mono.Posix.dll" />
		  <include name="MySql.Data.dll" />
	      </references>
	    </csc>
	    <copy todir="bin">
	      <fileset basedir=".">
		<include name="COPYING" />
		<include name="ChangeLog" />
		<include name="README.txt" />
		<include name="grubworkunits" />
		<include name="checkworkunits.sh" />
		<include name="MySql.Data.dll" />
	      </fileset> 
	    </copy>
        </target>
	<target name="tarball" description="create tar.gz with source code">
	    <tar destfile="urlsdb-${version}.tar.gz" compression="GZip">
	        <fileset prefix="urlsdb-${version}">
		    <include name="**/*" />
		</fileset>
	    </tar>
	</target>
	<target name="zip" description="create .zip file with binaries">
	    <zip zipfile="urlsdb-${version}.zip">
	    	 <fileset basedir="bin" prefix="urlsdb-${version}">
		     <include name="**/*" />
		 </fileset>
	    </zip>
	</target>
    </project>