Skip to content

Commit 6e86e2d

Browse files
committed
new build script, goodbye boo, hello perl
1 parent da15123 commit 6e86e2d

13 files changed

+238
-279
lines changed

.gitignore

+114-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,114 @@
1-
deploy/builds/
2-
*.nupkg
1+
## Ignore Visual Studio temporary files, build results, and
2+
## files generated by popular Visual Studio add-ons.
3+
4+
# User-specific files
5+
*.suo
6+
*.user
7+
*.sln.docstates
8+
9+
#OrigoDB snapshot and journal files
10+
*.snapshot
11+
*.journal
12+
13+
*.zip
14+
15+
# Build results
16+
17+
[Dd]ebug*/
18+
[Rr]elease/
19+
20+
build/
21+
22+
[Tt]est[Rr]esult
23+
[Bb]uild[Ll]og.*
24+
25+
*_i.c
26+
*_p.c
27+
*.ilk
28+
*.meta
29+
*.obj
30+
*.pch
31+
*.pdb
32+
*.pgc
33+
*.pgd
34+
*.rsp
35+
*.sbr
36+
*.tlb
37+
*.tli
38+
*.tlh
39+
*.tmp
40+
*.vspscc
41+
*.vssscc
42+
.builds
43+
44+
*.pidb
45+
46+
*.log
47+
*.scc
48+
# Visual C++ cache files
49+
ipch/
50+
*.aps
51+
*.ncb
52+
*.opensdf
53+
*.sdf
54+
55+
# Visual Studio profiler
56+
*.psess
57+
*.vsp
58+
59+
# Guidance Automation Toolkit
60+
*.gpState
61+
62+
# ReSharper is a .NET coding add-in
63+
_ReSharper*/
64+
65+
*.[Rr]e[Ss]harper
66+
67+
# NCrunch
68+
*.ncrunch*
69+
.*crunch*.local.xml
70+
71+
# Installshield output folder
72+
[Ee]xpress
73+
74+
# DocProject is a documentation generator add-in
75+
DocProject/buildhelp/
76+
DocProject/Help/*.HxT
77+
DocProject/Help/*.HxC
78+
DocProject/Help/*.hhc
79+
DocProject/Help/*.hhk
80+
DocProject/Help/*.hhp
81+
DocProject/Help/Html2
82+
DocProject/Help/html
83+
84+
# Click-Once directory
85+
publish
86+
87+
# Publish Web Output
88+
*.Publish.xml
89+
90+
# Others
91+
[Bb]in
92+
[Oo]bj
93+
sql
94+
TestResults
95+
[Tt]est[Rr]esult*
96+
*.Cache
97+
ClientBin
98+
[Ss]tyle[Cc]op.*
99+
~$*
100+
*.dbmdl
101+
102+
*.[Pp]ublish.xml
103+
104+
Generated_Code #added for RIA/Silverlight projects
105+
106+
# Backup & report files from converting an old project file to a newer
107+
# Visual Studio version. Backup files are not needed, because we have git ;-)
108+
_UpgradeReport_Files/
109+
Backup*/
110+
UpgradeLog*.XML
111+
112+
# NuGet
113+
packages/
114+
*.nupkg

License.txt renamed to LICENSE

File renamed without changes.

OrigoDb.Core.nuspec

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<package>
3+
<metadata>
4+
<id>OrigoDB.Core</id>
5+
<title>OrigoDB Engine and Client</title>
6+
<version>0.10.1</version>
7+
<authors>Robert Friberg, Kristoffer Schroeder et al</authors>
8+
<copyright>Devrex Labs</copyright>
9+
<summary>
10+
OrigoDB is an in-memory database engine for .NET.
11+
</summary>
12+
<description>
13+
OrigoDB is an in-memory database engine for .NET.
14+
</description>
15+
<projectUrl>https://github.com/devrexlabs/origodb</projectUrl>
16+
<iconUrl>http://devrexlabs.com/Content/icons/favicon.ico</iconUrl>
17+
<licenseUrl>https://github.com/devrexlabs/origodb#license</licenseUrl>
18+
<requireLicenseAcceptance>false</requireLicenseAcceptance>
19+
<releaseNotes>Can be found on project site: https://github.com/devrexlabs/origodb/wiki/release-notes</releaseNotes>
20+
<tags>OrigoDB in-memory imdb nosql database</tags>
21+
</metadata>
22+
<files>
23+
<file src="build\OrigoDB.Core.dll" target="lib\net40" />
24+
<file src="build\OrigoDB.Core.pdb" target="lib\net40" />
25+
<file src="build\OrigoDB.Core.XML" target="lib\net40" />
26+
<file src="src\OrigoDB.Core\**\*.cs" target="src" />
27+
</files>
28+
</package>

build.pl

+83
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
#!/usr/bin/perl
2+
use strict;
3+
4+
#
5+
# Build script for OrigoDB
6+
# Note:
7+
#
8+
9+
# Configuration section
10+
11+
12+
# tools
13+
my $msbuild = 'C:/Windows/Microsoft.NET/Framework/v4.0.30319/msbuild.exe';
14+
my $nuget = "nuget.exe";
15+
my $sevenZip = "C:/Program Files/7-Zip/7z.exe";
16+
17+
18+
my $version = extract('src/SharedAssemblyInfo.cs');
19+
die "missing or bad version: [$version]\n" unless $version =~ /^\d+\.\d+\.\d+(-[a-z]+)?$/;
20+
21+
my $config = shift || 'Release';
22+
my $target = shift || 'default';
23+
24+
my $solution = 'src/OrigoDB.sln';
25+
my $output = "build";
26+
27+
28+
my $x = "src/OrigoDB.*/bin/$config/";
29+
30+
31+
sub run;
32+
33+
my $targets = {
34+
default => sub
35+
{
36+
run qw|clean compile copy zip nuget_pack|;
37+
},
38+
clean => sub
39+
{
40+
system "rm -fr $output";
41+
mkdir $output;
42+
},
43+
compile => sub
44+
{
45+
system "$msbuild $solution /target:clean,rebuild > build/build.log";
46+
},
47+
copy => sub
48+
{
49+
system("cp -r $x/OrigoDB.* $output");
50+
system("rm $output/*Test*");
51+
},
52+
zip => sub {
53+
print "$sevenZip a -r -tzip $version-$config.zip build/*";
54+
system "\"$sevenZip\" a -r -tzip $version-$config.zip build/*";
55+
},
56+
nuget_pack => sub
57+
{
58+
system("$nuget pack OrigoDB.Core.nuspec -OutputDirectory build -version $version -symbols")
59+
},
60+
nuget_publish => sub
61+
{
62+
system "$nuget publish build/OrigoDB.Core.*.nupkg";
63+
}
64+
};
65+
66+
run $target;
67+
68+
sub run
69+
{
70+
for my $targetName (@_) {
71+
die "No such target: $targetName\n" unless exists $targets->{$targetName};
72+
print "target: $targetName\n";
73+
$targets->{$targetName}->();
74+
}
75+
}
76+
77+
sub extract
78+
{
79+
my $file = shift;
80+
`grep AssemblyVersion $file` =~ /(\d+\.\d+\.\d+)/;
81+
$1;
82+
}
83+

deploy/LiveDomain.Core.nuspec

-25
This file was deleted.

deploy/OrigoDb.Core.nuspec

-22
This file was deleted.

deploy/build.boo

-71
This file was deleted.

deploy/livedb.readme.txt

-5
This file was deleted.

0 commit comments

Comments
 (0)