Skip to content

Commit

Permalink
Improved releasing scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
remogloor committed Mar 26, 2012
1 parent 45d53ce commit 743157f
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Build-NinjectAndExtensions.bat
Expand Up @@ -6,8 +6,8 @@ IF ERRORLEVEL 1 GOTO FAILED
xcopy /S dist\* ..\dist-all
cd ..

IF NOT EXIST .\ninject.extensions.contextpreservation GOTO ENDFACTORY
cd ninject.extensions.contextpreservation
IF NOT EXIST .\ninject.extensions.factory GOTO ENDFACTORY
cd ninject.extensions.factory
del lib\Ninject\*.zip
copy ..\Ninject\dist\*.zip lib\Ninject
call UnzipDependencies.cmd
Expand Down
2 changes: 2 additions & 0 deletions PushGoogleCode.bat
@@ -0,0 +1,2 @@
tools\nant\nant.exe -buildfile:PushGoogleCode.build Push %1 %2 %3 %4 %5 %6 %7 %8
pause
34 changes: 34 additions & 0 deletions PushGoogleCode.build
@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="utf-8"?>
<project name="Ninject" default="build">
<property name="path.base" value="${project::get-base-directory()}"/>
<property name="path.tools" value="${path.base}\tools" dynamic="true"/>
<property name="path.tools.gcupload" value="${path.tools}\gcupload\gcupload.exe" dynamic="true"/>
<property name="path.releases" value="${path.base}/../dist-all" dynamic="true"/>
<property name="username" value="remo.gloor@gmail.com"/>
<property name="password" value=""/>

<target name="Push">
<foreach item="File" property="filename">
<in>
<items>
<include name="${path.releases}/*.zip" />
<exclude name="${path.releases}/*-source.zip" />
</items>
</in>
<do>
<property name="fn" value="${path::get-file-name-without-extension(filename)}"/>
<property name="projectName" value="${string::substring(fn, 0, string::index-of(fn, '-'))}"/>

<property name="temp" value="${string::substring(fn, string::index-of(fn, '-') + 1, string::get-length(fn) - 1 - string::index-of(fn, '-'))}"/>
<property name="fullversion" value="${string::substring(temp, 0, string::index-of(temp, '-'))}"/>
<property name="version" value="${string::substring(fullversion, 0, string::last-index-of(fullversion, '.'))}"/>

<property name="platform" value="${string::substring(fn, string::last-index-of(fn, 'release-') + 8, string::get-length(fn) - 8 - string::last-index-of(fn, 'release-'))}"/>

<exec program='${path.tools.gcupload}'
commandline='-u:${username} -p:${password} -n:ninject2 -s:${fn} -f:${filename} -l:${projectName},${version},${platform},Type-Archive'
failonerror='false'/>
</do>
</foreach>
</target>
</project>
Binary file added tools/GCUpload/GCUpload.exe
Binary file not shown.

0 comments on commit 743157f

Please sign in to comment.