From: Scott H. <sk...@us...> - 2002-05-31 18:35:18
|
Update of /cvsroot/nant/nant/src/Extras/SLiNgshoT In directory usw-pr-cvs1:/tmp/cvs-serv12161 Added Files: Makefile SLiNgshoT.build SLiNgshoT.sln clean.bat test.bat zip.bat Log Message: Initial checkin. SLiNgshoT provided by Jason Diamond (ja...@in...) --- NEW FILE: Makefile --- # Generated by SLiNgshoT <http://injektilo.org/> !IFNDEF CFG CFG = Debug !ENDIF !IF "$(CFG)" == "Debug" SLINGSHOT_DIRECTORY = SLiNgshoT\bin\Debug SLINGSHOT = $(SLINGSHOT_DIRECTORY)\SLiNgshoT.exe SLINGSHOT_DEBUG = /debug+ SLINGSHOT_UNSAFE = /unsafe- SLINGSHOT_DEFINES = /define:DEBUG;TRACE SLINGSHOT_DOC = SLINGSHOT_CORE_DIRECTORY = SLiNgshoT.Core\bin\Debug SLINGSHOT_CORE = $(SLINGSHOT_CORE_DIRECTORY)\SLiNgshoT.Core.dll SLINGSHOT_CORE_DEBUG = /debug+ SLINGSHOT_CORE_UNSAFE = /unsafe- SLINGSHOT_CORE_DEFINES = /define:DEBUG;TRACE SLINGSHOT_CORE_DOC = !ELSE IF "$(CFG)" == "Release" SLINGSHOT_DIRECTORY = SLiNgshoT\bin\Release SLINGSHOT = $(SLINGSHOT_DIRECTORY)\SLiNgshoT.exe SLINGSHOT_DEBUG = /debug- SLINGSHOT_UNSAFE = /unsafe- SLINGSHOT_DEFINES = /define:TRACE SLINGSHOT_DOC = SLINGSHOT_CORE_DIRECTORY = SLiNgshoT.Core\bin\Release SLINGSHOT_CORE = $(SLINGSHOT_CORE_DIRECTORY)\SLiNgshoT.Core.dll SLINGSHOT_CORE_DEBUG = /debug- SLINGSHOT_CORE_UNSAFE = /unsafe- SLINGSHOT_CORE_DEFINES = /define:TRACE SLINGSHOT_CORE_DOC = !ENDIF all: $(SLINGSHOT) $(SLINGSHOT_CORE) SLINGSHOT_SOURCE_FILES = \ SLiNgshoT\AssemblyInfo.cs \ SLiNgshoT\Main.cs SLINGSHOT_CORE_SOURCE_FILES = \ SLiNgshoT.Core\AssemblyInfo.cs \ SLiNgshoT.Core\Attributes.cs \ SLiNgshoT.Core\Configuration.cs \ SLiNgshoT.Core\Driver.cs \ SLiNgshoT.Core\File.cs \ SLiNgshoT.Core\NAntWriter.cs \ SLiNgshoT.Core\NMakeWriter.cs \ SLiNgshoT.Core\Project.cs \ SLiNgshoT.Core\Reference.cs \ SLiNgshoT.Core\Solution.cs \ SLiNgshoT.Core\SolutionWriter.cs $(SLINGSHOT): $(SLINGSHOT_CORE) $(SLINGSHOT_SOURCE_FILES) if not exist $(SLINGSHOT_DIRECTORY) md $(SLINGSHOT_DIRECTORY) csc /nologo /target:exe /out:$(SLINGSHOT) $(SLINGSHOT_DEBUG) $(SLINGSHOT_UNSAFE) $(SLINGSHOT_DEFINES) $(SLINGSHOT_DOC) $(SLINGSHOT_SOURCE_FILES) /reference:System.dll /reference:System.Data.dll /reference:System.XML.dll /reference:$(SLINGSHOT_CORE) copy $(SLINGSHOT_CORE) $(SLINGSHOT_DIRECTORY) $(SLINGSHOT_CORE): $(SLINGSHOT_CORE_SOURCE_FILES) if not exist $(SLINGSHOT_CORE_DIRECTORY) md $(SLINGSHOT_CORE_DIRECTORY) csc /nologo /target:library /out:$(SLINGSHOT_CORE) $(SLINGSHOT_CORE_DEBUG) $(SLINGSHOT_CORE_UNSAFE) $(SLINGSHOT_CORE_DEFINES) $(SLINGSHOT_CORE_DOC) $(SLINGSHOT_CORE_SOURCE_FILES) /reference:System.dll /reference:System.Data.dll /reference:System.Xml.dll clean: rd /s /q $(SLINGSHOT_DIRECTORY) rd /s /q $(SLINGSHOT_CORE_DIRECTORY) --- NEW FILE: SLiNgshoT.build --- <!-- Generated by SLiNgshoT <http://injektilo.org/> --> <project name="SLiNgshoT" default="Debug"> <property name="build.basedir" value="build" /> <target name="Debug" depends="SLiNgshoT.Debug,SLiNgshoT.Core.Debug" /> <target name="Release" depends="SLiNgshoT.Release,SLiNgshoT.Core.Release" /> <target name="setup"> <mkdir dir="${build.dir}" /> </target> <target name="SLiNgshoT.Debug" depends="SLiNgshoT.Core.Debug"> <property name="project.name" value="SLiNgshoT" /> <property name="build.dir" value="${build.basedir}\Debug" /> <property name="output" value="${build.dir}\SLiNgshoT.exe" /> <property name="debug" value="true" /> <property name="unsafe" value="/unsafe-" /> <property name="checked" value="/checked-" /> <property name="define" value="DEBUG;TRACE" /> <property name="doc" value="" /> <call target="SLiNgshoT" /> </target> <target name="SLiNgshoT.Release" depends="SLiNgshoT.Core.Release"> <property name="project.name" value="SLiNgshoT" /> <property name="build.dir" value="${build.basedir}\Release" /> <property name="output" value="${build.dir}\SLiNgshoT.exe" /> <property name="debug" value="false" /> <property name="unsafe" value="/unsafe-" /> <property name="checked" value="/checked-" /> <property name="define" value="TRACE" /> <property name="doc" value="" /> <call target="SLiNgshoT" /> </target> <target name="SLiNgshoT" depends="setup"> <csc target="exe" output="${output}" debug="${debug}" define="${define}" doc="${doc}"> <arg value="${unsafe}" /> <arg value="${checked}" /> <sources> <includes name="SLiNgshoT\AssemblyInfo.cs" /> <includes name="SLiNgshoT\Main.cs" /> </sources> <references> <includes name="System.dll" /> <includes name="System.Data.dll" /> <includes name="System.XML.dll" /> <includes name="${build.dir}\SLiNgshoT.Core.dll" /> </references> </csc> </target> <target name="SLiNgshoT.Core.Debug"> <property name="project.name" value="SLiNgshoT.Core" /> <property name="build.dir" value="${build.basedir}\Debug" /> <property name="output" value="${build.dir}\SLiNgshoT.Core.dll" /> <property name="debug" value="true" /> <property name="unsafe" value="/unsafe-" /> <property name="checked" value="/checked-" /> <property name="define" value="DEBUG;TRACE" /> <property name="doc" value="" /> <call target="SLiNgshoT.Core" /> </target> <target name="SLiNgshoT.Core.Release"> <property name="project.name" value="SLiNgshoT.Core" /> <property name="build.dir" value="${build.basedir}\Release" /> <property name="output" value="${build.dir}\SLiNgshoT.Core.dll" /> <property name="debug" value="false" /> <property name="unsafe" value="/unsafe-" /> <property name="checked" value="/checked-" /> <property name="define" value="TRACE" /> <property name="doc" value="" /> <call target="SLiNgshoT.Core" /> </target> <target name="SLiNgshoT.Core" depends="setup"> <csc target="library" output="${output}" debug="${debug}" define="${define}" doc="${doc}"> <arg value="${unsafe}" /> <arg value="${checked}" /> <sources> <includes name="SLiNgshoT.Core\AssemblyInfo.cs" /> <includes name="SLiNgshoT.Core\Attributes.cs" /> <includes name="SLiNgshoT.Core\Configuration.cs" /> <includes name="SLiNgshoT.Core\Driver.cs" /> <includes name="SLiNgshoT.Core\File.cs" /> <includes name="SLiNgshoT.Core\NAntWriter.cs" /> <includes name="SLiNgshoT.Core\NMakeWriter.cs" /> <includes name="SLiNgshoT.Core\Project.cs" /> <includes name="SLiNgshoT.Core\Reference.cs" /> <includes name="SLiNgshoT.Core\Solution.cs" /> <includes name="SLiNgshoT.Core\SolutionWriter.cs" /> </sources> <references> <includes name="System.dll" /> <includes name="System.Data.dll" /> <includes name="System.Xml.dll" /> </references> </csc> </target> <target name="DebugClean"> <property name="build.dir" value="${build.basedir}\Debug" /> <call target="Clean" /> </target> <target name="ReleaseClean"> <property name="build.dir" value="${build.basedir}\Release" /> <call target="Clean" /> </target> <target name="Clean"> <delete file="${build.dir}\SLiNgshoT.exe" failonerror="false" /> <delete file="${build.dir}\SLiNgshoT.pdb" failonerror="false" /> <delete file="${build.dir}\SLiNgshoT.Core.dll" failonerror="false" /> <delete file="${build.dir}\SLiNgshoT.Core.pdb" failonerror="false" /> </target> </project> --- NEW FILE: SLiNgshoT.sln --- Microsoft Visual Studio Solution File, Format Version 7.00 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SLiNgshoT", "SLiNgshoT\SLiNgshoT.csproj", "{7B7D512B-FDF9-4F39-9FA2-6986D76F6C13}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SLiNgshoT.Core", "SLiNgshoT.Core\SLiNgshoT.Core.csproj", "{3F533CCA-9C8F-4D84-8C1A-1F6D89CB5912}" EndProject Global GlobalSection(SolutionConfiguration) = preSolution ConfigName.0 = Debug ConfigName.1 = Release EndGlobalSection GlobalSection(ProjectDependencies) = postSolution EndGlobalSection GlobalSection(ProjectConfiguration) = postSolution {7B7D512B-FDF9-4F39-9FA2-6986D76F6C13}.Debug.ActiveCfg = Debug|.NET {7B7D512B-FDF9-4F39-9FA2-6986D76F6C13}.Debug.Build.0 = Debug|.NET {7B7D512B-FDF9-4F39-9FA2-6986D76F6C13}.Release.ActiveCfg = Release|.NET {7B7D512B-FDF9-4F39-9FA2-6986D76F6C13}.Release.Build.0 = Release|.NET {3F533CCA-9C8F-4D84-8C1A-1F6D89CB5912}.Debug.ActiveCfg = Debug|.NET {3F533CCA-9C8F-4D84-8C1A-1F6D89CB5912}.Debug.Build.0 = Debug|.NET {3F533CCA-9C8F-4D84-8C1A-1F6D89CB5912}.Release.ActiveCfg = Release|.NET {3F533CCA-9C8F-4D84-8C1A-1F6D89CB5912}.Release.Build.0 = Release|.NET EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution EndGlobalSection GlobalSection(ExtensibilityAddIns) = postSolution EndGlobalSection EndGlobal --- NEW FILE: clean.bat --- @echo off if exist SLiNgshoT.suo del /AH SLiNgshoT.suo if exist SLiNgshoT\SLiNgshoT.csproj.user del SLiNgshoT\SLiNgshoT.csproj.user if exist SLiNgshoT.Core\bin rd /s /q SLiNgshoT\bin if exist SLiNgshoT\obj rd /s /q SLiNgshoT\obj if exist SLiNgshoT.Core\SLiNgshoT.Core.csproj.user del SLiNgshoT.Core\SLiNgshoT.Core.csproj.user if exist SLiNgshoT.Core\bin rd /s /q SLiNgshoT.Core\bin if exist SLiNgshoT.Core\obj rd /s /q SLiNgshoT.Core\obj if exist build rd /s /q build --- NEW FILE: test.bat --- @echo off SLiNgshoT\bin\Debug\SLiNgshoT.exe -nant build.basedir=build > SLiNgshoT.build SLiNgshoT\bin\Debug\SLiNgshoT.exe -nmake > Makefile --- NEW FILE: zip.bat --- @echo off cd .. if not exist SLiNgshoT.zip goto zip echo SLiNgshoT.zip exists. rename it or delete it. goto end :zip "C:\Program Files\WinZip\WZZIP.EXE" -rP SLiNgshoT.zip SLiNgshoT :end cd SLiNgshoT |