You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by ea...@apache.org on 2007/02/23 22:57:20 UTC

svn commit: r511127 - /incubator/uima/uimacpp/trunk/buildSrcTree.cmd

Author: eae
Date: Fri Feb 23 13:57:20 2007
New Revision: 511127

URL: http://svn.apache.org/viewvc?view=rev&rev=511127
Log:
UIMA-278

Added:
    incubator/uima/uimacpp/trunk/buildSrcTree.cmd

Added: incubator/uima/uimacpp/trunk/buildSrcTree.cmd
URL: http://svn.apache.org/viewvc/incubator/uima/uimacpp/trunk/buildSrcTree.cmd?view=auto&rev=511127
==============================================================================
--- incubator/uima/uimacpp/trunk/buildSrcTree.cmd (added)
+++ incubator/uima/uimacpp/trunk/buildSrcTree.cmd Fri Feb 23 13:57:20 2007
@@ -0,0 +1,153 @@
+@ECHO OFF
+SETLOCAL
+
+REM For now, update version in line below
+set srcName=uimacpp-2.1.0-incubating
+
+REM check args
+if "%~1" == "" (
+	echo ERROR: target directory for source tree not specified
+	echo ------
+	echo Usage: buildSrcTree targetDirectory [clean]
+	echo        Builds %srcName% source tree for distribution
+	echo assumes: current directory is the root of svn extract
+	echo expects: target directory to be non-existant
+	echo ------
+	goto error
+)
+
+set TARGET_DIR=%1\%srcName%
+
+if "%2" == "clean" (
+  rmdir %TARGET_DIR% /s /q
+)
+
+if exist %TARGET_DIR% (
+	echo ERROR: directory %TARGET_DIR% already exists
+	echo use "clean" option
+	goto error
+)
+echo Target source tree directory is %TARGET_DIR%
+
+set UIMACPP_SOURCE=%CD%
+if not exist %UIMACPP_SOURCE%\src (
+	echo ERROR: current directory is not root of UIMACPP source tree
+	goto error
+)
+
+mkdir %TARGET_DIR%
+mkdir %TARGET_DIR%\data
+mkdir %TARGET_DIR%\docs
+mkdir %TARGET_DIR%\src
+mkdir %TARGET_DIR%\src\cas
+mkdir %TARGET_DIR%\src\cas\uima
+mkdir %TARGET_DIR%\src\framework
+mkdir %TARGET_DIR%\src\framework\uima
+mkdir %TARGET_DIR%\src\jni
+mkdir %TARGET_DIR%\src\jni\uima
+mkdir %TARGET_DIR%\src\utils
+mkdir %TARGET_DIR%\src\test
+mkdir %TARGET_DIR%\src\test\data
+mkdir %TARGET_DIR%\src\test\data\descriptors
+mkdir %TARGET_DIR%\src\test\data\ExampleCas
+mkdir %TARGET_DIR%\src\test\data\segmenterinput
+mkdir %TARGET_DIR%\src\test\src
+mkdir %TARGET_DIR%\src\test\src\uima
+
+mkdir %TARGET_DIR%\examples
+mkdir %TARGET_DIR%\examples\data
+mkdir %TARGET_DIR%\examples\descriptors
+mkdir %TARGET_DIR%\examples\src
+mkdir %TARGET_DIR%\examples\tutorial
+mkdir %TARGET_DIR%\examples\tutorial\src
+mkdir %TARGET_DIR%\examples\tutorial\descriptors
+mkdir %TARGET_DIR%\scriptators
+mkdir %TARGET_DIR%\scriptators\perl
+mkdir %TARGET_DIR%\scriptators\python
+mkdir %TARGET_DIR%\scriptators\tcl
+
+echo.
+echo copying from %UIMACPP_SOURCE%
+xcopy /Q %UIMACPP_SOURCE%\buildsdk.cmd %TARGET_DIR%
+xcopy /Q %UIMACPP_SOURCE%\NOTICE %TARGET_DIR%
+xcopy /Q %UIMACPP_SOURCE%\LICENSE %TARGET_DIR%
+xcopy /Q %UIMACPP_SOURCE%\RELEASE_NOTES.* %TARGET_DIR%
+xcopy /Q %UIMACPP_SOURCE%\README.4src %TARGET_DIR%
+ren %TARGET_DIR%\README.4src README
+xcopy /Q %UIMACPP_SOURCE%\README.4sdk %TARGET_DIR%
+xcopy /Q %UIMACPP_SOURCE%\DISCLAIMER %TARGET_DIR%
+
+echo copying from %UIMACPP_SOURCE%\data
+xcopy /Q  %UIMACPP_SOURCE%\data\*.xsd %TARGET_DIR%\data
+
+echo copying from %UIMACPP_SOURCE%\docs
+xcopy /Q %UIMACPP_SOURCE%\docs\uimacppdocs.mak %TARGET_DIR%\docs
+xcopy /Q %UIMACPP_SOURCE%\docs\builddocs.cmd %TARGET_DIR%\docs
+xcopy /Q %UIMACPP_SOURCE%\docs\uimacpp.dox %TARGET_DIR%\docs
+xcopy /Q %UIMACPP_SOURCE%\docs\doxyheader.html %TARGET_DIR%\docs
+
+echo copying from %UIMACPP_SOURCE%\src
+xcopy /Q %UIMACPP_SOURCE%\src\readme.tobuild %TARGET_DIR%\src
+xcopy /Q %UIMACPP_SOURCE%\src\*.cmd %TARGET_DIR%\src
+xcopy /Q %UIMACPP_SOURCE%\src\*.sln %TARGET_DIR%\src
+xcopy /Q %UIMACPP_SOURCE%\src\*.bat %TARGET_DIR%\src
+xcopy /Q %UIMACPP_SOURCE%\src\*.vcproj %TARGET_DIR%\src
+
+echo copying from %UIMACPP_SOURCE%\src\cas
+xcopy /Q %UIMACPP_SOURCE%\src\cas\*.cpp %TARGET_DIR%\src\cas
+xcopy /Q %UIMACPP_SOURCE%\src\cas\uima\*.hpp %TARGET_DIR%\src\cas\uima
+xcopy /Q %UIMACPP_SOURCE%\src\cas\uima\*.inl %TARGET_DIR%\src\cas\uima
+
+echo copying from %UIMACPP_SOURCE%\src\framework
+xcopy /Q %UIMACPP_SOURCE%\src\framework\*.cpp %TARGET_DIR%\src\framework
+xcopy /Q %UIMACPP_SOURCE%\src\framework\uima\*.hpp %TARGET_DIR%\src\framework\uima
+xcopy /Q %UIMACPP_SOURCE%\src\framework\uima\*.h %TARGET_DIR%\src\framework\uima
+
+echo copying from %UIMACPP_SOURCE%\src\jni
+xcopy /Q %UIMACPP_SOURCE%\src\jni\*.cpp %TARGET_DIR%\src\jni
+xcopy /Q %UIMACPP_SOURCE%\src\jni\uima\*.hpp %TARGET_DIR%\src\jni\uima
+xcopy /Q %UIMACPP_SOURCE%\src\jni\uima\*.h %TARGET_DIR%\src\jni\uima
+
+echo copying from %UIMACPP_SOURCE%\src\test
+xcopy /Q %UIMACPP_SOURCE%\src\test\*.sln %TARGET_DIR%\src\test
+xcopy /Q %UIMACPP_SOURCE%\src\test\*.bat %TARGET_DIR%\src\test
+xcopy /Q %UIMACPP_SOURCE%\src\test\fvtTestfile %TARGET_DIR%\src\test
+xcopy /Q %UIMACPP_SOURCE%\src\test\data\*.* %TARGET_DIR%\src\test\data
+xcopy /Q %UIMACPP_SOURCE%\src\test\data\segmenterinput\*.* %TARGET_DIR%\src\test\data\segmenterinput
+xcopy /Q %UIMACPP_SOURCE%\src\test\data\ExampleCas\*.* %TARGET_DIR%\src\test\data\ExampleCas
+xcopy /Q %UIMACPP_SOURCE%\src\test\data\descriptors\*.* %TARGET_DIR%\src\test\data\descriptors
+xcopy /Q %UIMACPP_SOURCE%\src\test\src\*.cpp %TARGET_DIR%\src\test\src
+xcopy /Q %UIMACPP_SOURCE%\src\test\src\*.vcproj %TARGET_DIR%\src\test\src
+xcopy /Q %UIMACPP_SOURCE%\src\test\src\uima\*.hpp %TARGET_DIR%\src\test\src\uima
+
+echo copying from %UIMACPP_SOURCE%\src\utils
+xcopy /Q %UIMACPP_SOURCE%\src\utils\*.cpp %TARGET_DIR%\src\utils
+
+echo copying from %UIMACPP_SOURCE%\examples
+xcopy /Q %UIMACPP_SOURCE%\examples\*.cmd %TARGET_DIR%\examples
+xcopy /Q %UIMACPP_SOURCE%\examples\*.html %TARGET_DIR%\examples
+xcopy /Q %UIMACPP_SOURCE%\examples\data\*.* %TARGET_DIR%\examples\data
+xcopy /Q %UIMACPP_SOURCE%\examples\descriptors\*.xml %TARGET_DIR%\examples\descriptors
+xcopy /Q %UIMACPP_SOURCE%\examples\src\*.cpp %TARGET_DIR%\examples\src
+xcopy /Q %UIMACPP_SOURCE%\examples\src\*.sln %TARGET_DIR%\examples\src
+xcopy /Q %UIMACPP_SOURCE%\examples\src\*.vcproj %TARGET_DIR%\examples\src
+xcopy /Q %UIMACPP_SOURCE%\examples\tutorial\*.* %TARGET_DIR%\examples\tutorial
+xcopy /Q %UIMACPP_SOURCE%\examples\tutorial\descriptors\*.xml %TARGET_DIR%\examples\tutorial\descriptors
+xcopy /Q %UIMACPP_SOURCE%\examples\tutorial\src\*.vcproj %TARGET_DIR%\examples\tutorial\src
+
+echo copying from %UIMACPP_SOURCE%\scriptators
+xcopy /Q %UIMACPP_SOURCE%\scriptators\*.* %TARGET_DIR%\scriptators
+xcopy /Q %UIMACPP_SOURCE%\scriptators\perl\*.* %TARGET_DIR%\scriptators\perl
+del %TARGET_DIR%\scriptators\perl\Makefile
+xcopy /Q %UIMACPP_SOURCE%\scriptators\python\*.* %TARGET_DIR%\scriptators\python
+del %TARGET_DIR%\scriptators\python\Makefile
+xcopy /Q %UIMACPP_SOURCE%\scriptators\tcl\*.* %TARGET_DIR%\scriptators\tcl
+del %TARGET_DIR%\scriptators\tcl\Makefile
+
+echo DONE ... Source image created in %TARGET_DIR%
+goto end
+
+:error
+	echo FAILED: UIMA C++ source tree was not built.
+
+:end