Skip to content

Commit

Permalink
Add a release script
Browse files Browse the repository at this point in the history
  • Loading branch information
anaisbetts committed Mar 5, 2013
1 parent dd5098a commit 5ac05e7
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,5 @@ Generated_Code #added for RIA/Silverlight projects

# Custom

packages
packages
Release/
26 changes: 26 additions & 0 deletions MakeRelease.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
$Archs = {"Net40", "Net45", "SL5", "WP7", "WP8", "WinRT45", "Mono"}
$Projects = {"Akavache", "Akavache.Sqlite3", "Akavache.Mobile"}

$SlnFileExists = Test-Path ".\Akavache.sln"
if ($SlnFileExists -eq $False) {
echo "*** ERROR: Run this in the project root ***"
exit -1
}

###
### Build the Release directory
###

rmdir -r --force .\Release

foreach-object $Archs | %{mkdir -p ".\Release\$_"}

foreach-object $Archs | %{
$currentArch = $_

foreach-object $Projects | %{cp -r -fo ".\$_\bin\Release\$currentArch\*" ".\Release\$currentArch"}

#ls -r | ?{$_.FullName.Contains("bin\Release\$currentArch") -and $_.Length} | %{echo cp $_.FullName ".\Release\$currentArch"}
}

ls -r .\Release | ?{$_.FullName.Contains("Clousot")} | %{rm $_.FullName}

0 comments on commit 5ac05e7

Please sign in to comment.