Browse Source

2002-10-16 Daniel Morgan <[email protected]>

	* SqlSharpCli.cs: import from
	mcs/class/System.Data/Test
	by Miguel to
	mcs/tools/SqlSharp

	* unix.args
	* Makefile
	* SqlSharpCli.build: add build files

	* README: add file about SqlSharp

	* ChangeLog: add file for log of changes

svn path=/trunk/mcs/; revision=8323
Daniel Morgan 23 years ago
parent
commit
1befb4e2d5

+ 15 - 0
mcs/tools/SqlSharp/ChangeLog

@@ -0,0 +1,15 @@
+2002-10-16  Daniel Morgan <[email protected]>
+
+	* SqlSharpCli.cs: import from 
+	mcs/class/System.Data/Test
+	by Miguel to
+	mcs/tools/SqlSharp
+	
+	* unix.args
+	* Makefile
+	* SqlSharpCli.build: add build files
+	
+	* README: add file about SqlSharp
+	
+	* ChangeLog: add file for log of changes
+

+ 45 - 0
mcs/tools/SqlSharp/Makefile

@@ -0,0 +1,45 @@
+CSC = csc
+
+CSCFLAGS = /out:$(PROGRAM) \
+	/noconfig \
+	/r:../../class/lib/System.dll \
+	/r:../../class/lib/System.Xml.dll \
+	/r:../../class/lib/System.Data.dll \
+	/debug+ /debug:full 
+# CSCFLAGS = /out:$(PROGRAM) \
+#	/noconfig \
+#	/r:../../class/lib/System.dll \
+#	/r:../../class/lib/System.Xml.dll \
+#	/r:../../class/lib/System.Data.dll \
+
+
+PROGRAM = SqlSharpCli.exe
+
+MONO = mono
+
+PROGRAM_FILES =  \
+	SqlSharpCli.cs
+
+all: $(PROGRAM)
+
+$(PROGRAM) : $(PROGRAM_FILES)
+	$(CSC) $(CSCFLAGS) $(PROGRAM_FILES)
+
+test-run : $(PROGRAM)
+	$(MONO) $(PROGRAM) -A $(PROGRAM) $(ARGS)
+
+run : $(PROGRAM)
+	$(MONO) $(PROGRAM) $(ARGS)
+
+windows:
+	NAnt -buildfile:SqlSharpCli.build
+
+linux: 
+	mcs @unix.args
+
+clean:
+	rm -f *.exe *.pdb *.dll *~
+
+linecount:
+	wc -l $(PROGRAM_FILES)
+

+ 5 - 0
mcs/tools/SqlSharp/README

@@ -0,0 +1,5 @@
+SQL# CLI - SQL Sharp Command Line Interface
+
+Use this tool to test connection strings and enter SQL queries 
+to different ADO.NET providers in Mono.
+

+ 17 - 0
mcs/tools/SqlSharp/SqlSharpCli.build

@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<project name="type-reflector" default="linux">
+	<target name="linux">
+		<csc target="exe" output="./SqlSharpCli.exe" debug="true">
+			<arg value="/noconfig"/>
+			<arg value="/r:../../class/lib/System.dll"/>
+			<arg value="/r:../../class/lib/System.Xml.dll"/>
+			<arg value="/r:../../class/lib/System.Data.dll"/>
+
+			<sources>
+				<includes name="*.cs" />
+			</sources>
+		</csc>
+	</target>
+</project>
+

+ 2 - 0
mcs/tools/SqlSharp/unix.args

@@ -0,0 +1,2 @@
+-o SqlSharpCli.exe
+SqlSharpCli.cs