diff options
author | mschwerhoff <unknown> | 2011-08-18 15:35:14 +0200 |
---|---|---|
committer | mschwerhoff <unknown> | 2011-08-18 15:35:14 +0200 |
commit | ba63b678ede8a42b12247f848747e3cf99daaa27 (patch) | |
tree | 124079f8e0df67fee475766288e23d9348d23545 /Chalice/scripts | |
parent | 607a95e29458bcc2515e5bfc8da43fb94e628b02 (diff) |
Chalice: Added a script gathering all files necessary and/or of interest for a Chalice release.
Diffstat (limited to 'Chalice/scripts')
-rw-r--r-- | Chalice/scripts/create_release/README.TXT | 3 | ||||
-rw-r--r-- | Chalice/scripts/create_release/create_release.bat | 24 | ||||
-rw-r--r-- | Chalice/scripts/create_release/files/chalice.bat | 5 |
3 files changed, 32 insertions, 0 deletions
diff --git a/Chalice/scripts/create_release/README.TXT b/Chalice/scripts/create_release/README.TXT new file mode 100644 index 00000000..b416a241 --- /dev/null +++ b/Chalice/scripts/create_release/README.TXT @@ -0,0 +1,3 @@ +This script is invoked by Aste (the build tool creating Chalice nightlies). Hence, don't move it to another location!
+
+The script will be replaced with an sbt action sooner or later anyway.
\ No newline at end of file diff --git a/Chalice/scripts/create_release/create_release.bat b/Chalice/scripts/create_release/create_release.bat new file mode 100644 index 00000000..a0d67fd9 --- /dev/null +++ b/Chalice/scripts/create_release/create_release.bat @@ -0,0 +1,24 @@ +@echo off
+SetLocal
+
+set BASE_DIR=%~dp0\..\..
+
+set RELEASE_DIR_SRC=%~dp0\files
+set RELEASE_DIR_DST=%~dp0\release
+
+set CHALICE_JAR_SRC=%BASE_DIR%\target\scala-2.8.1.final\chalice_2.8.1-1.0.jar
+set CHALICE_JAR_DST=%RELEASE_DIR_DST%\chalice.jar
+
+pushd %BASE_DIR%
+call sbt.bat package
+
+popd
+
+if exist "%RELEASE_DIR_DST%" rmdir /S /Q "%RELEASE_DIR_DST%"
+mkdir "%RELEASE_DIR_DST%"
+
+copy "%CHALICE_JAR_SRC%" "%CHALICE_JAR_DST%"
+copy "%RELEASE_DIR_SRC%\*.*" "%RELEASE_DIR_DST%"
+copy "%RELEASE_DIR_SRC%\*.*" "%RELEASE_DIR_DST%"
+
+xcopy %BASE_DIR%\tests\examples %RELEASE_DIR_DST%\examples\
\ No newline at end of file diff --git a/Chalice/scripts/create_release/files/chalice.bat b/Chalice/scripts/create_release/files/chalice.bat new file mode 100644 index 00000000..d70d05b8 --- /dev/null +++ b/Chalice/scripts/create_release/files/chalice.bat @@ -0,0 +1,5 @@ +@echo off
+
+call scala -cp chalice.jar chalice.Chalice /boogieOpt:nologo %*
+
+exit /B 0
|