File: Coco.build

package info (click to toggle)
coco-cs 20110419-5.2
  • links: PTS
  • area: main
  • in suites: bookworm, sid
  • size: 256 kB
  • sloc: cs: 3,416; makefile: 55; sh: 1
file content (76 lines) | stat: -rwxr-xr-x 1,812 bytes parent folder | download | duplicates (4)
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<?xml version="1.0"?>
<project name="Coco/R" default="build" basedir=".">
	<property name="debug" value="true" overwrite="false" />

	<target name="usage">
		<echo message="NAnt Targets:"/>
		<echo message="    clean: Full clean up."/>
		<echo message="    build: Build Coco/R."/>
		<echo message="    zip: Create a zip file with the Coco/R sources."/>
		<echo message="    self: Create the parser and scanner from the atg."/>
	</target>

	<target name="init">
		<tstamp/>
	</target>

	<target name="build" depends="init">
		<echo message="Building Coco/R..."/>
		<csc target="exe" output="Coco.exe" debug="${debug}">
			<sources>
				<include name="Coco.cs" />
				<include name="Scanner.cs" />
				<include name="Tab.cs" />
				<include name="DFA.cs" />
				<include name="ParserGen.cs" />
				<include name="Parser.cs" />
			</sources>
		</csc>
	</target>

	<target name="zip">
		<echo message="Packing Coco/R..."/>
		<zip zipfile="CocoSourcesCS.zip">
			<fileset basedir=".">
				<include name="*.atg" />
				<include name="*.frame" />
				<include name="*.bat" />
				<include name="*.cs" />
				<include name="*.build" />
			</fileset>
		</zip>
	</target>

	<target name="self-mono">
		<exec program="mono">
			<arg value="Coco.exe" />
			<arg value="-namespace" />
			<arg value="at.jku.ssw.Coco" />
			<arg value="Coco.atg" />
		</exec>
	</target>

	<target name="self">
		<exec program="Coco.exe">
			<arg value="-namespace" />
			<arg value="at.jku.ssw.Coco" />
			<arg value="Coco.atg" />
		</exec>
	</target>

	<target name="clean">
		<delete file="Coco.exe" failonerror="false" />
	</target>

	<target name="svn-diff">
		<exec program="svn">
			<arg value="diff" />
			<arg value="--diff-cmd" />
			<arg value="diff" />
			<arg value="-x" />
			<arg value="-uw" />
		</exec>
	</target>

</project>