Skip to content

Commit

Permalink
Brought over scripts for k build.
Browse files Browse the repository at this point in the history
  • Loading branch information
tillig committed Feb 4, 2015
1 parent 92310d3 commit 224bede
Show file tree
Hide file tree
Showing 8 changed files with 191 additions and 63 deletions.
15 changes: 3 additions & 12 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,16 @@ root = true
[*]
end_of_line = CRLF

[*.cs]
[*.{cs,json}]
indent_style = space
indent_size = 4
trim_trailing_whitespace = true

[*.proj]
[*.{proj,props,sln,targets}]
indent_style = tab
trim_trailing_whitespace = true

[*.ps1]
[*.{kproj,csproj,ps1,resx,rst}]
indent_style = space
indent_size = 2
trim_trailing_whitespace = true

[*.rst]
indent_style = space
indent_size = 2
trim_trailing_whitespace = true

[*.targets]
indent_style = tab
trim_trailing_whitespace = true
50 changes: 50 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
*.doc diff=astextplain
*.DOC diff=astextplain
*.docx diff=astextplain
*.DOCX diff=astextplain
*.dot diff=astextplain
*.DOT diff=astextplain
*.pdf diff=astextplain
*.PDF diff=astextplain
*.rtf diff=astextplain
*.RTF diff=astextplain

*.jpg binary
*.png binary
*.gif binary

*.cs text=auto diff=csharp
*.vb text=auto
*.resx text=auto
*.c text=auto
*.cpp text=auto
*.cxx text=auto
*.h text=auto
*.hxx text=auto
*.py text=auto
*.rb text=auto
*.java text=auto
*.html text=auto
*.htm text=auto
*.css text=auto
*.scss text=auto
*.sass text=auto
*.less text=auto
*.js text=auto
*.lisp text=auto
*.clj text=auto
*.sql text=auto
*.php text=auto
*.lua text=auto
*.m text=auto
*.asm text=auto
*.erl text=auto
*.fs text=auto
*.fsx text=auto
*.hs text=auto

*.csproj text=auto
*.vbproj text=auto
*.fsproj text=auto
*.dbproj text=auto
*.sln text=auto eol=crlf
26 changes: 14 additions & 12 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
The MIT License (MIT)

Copyright (c) 2014 Autofac Contributors
Copyright (c) 2014 Autofac Project

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

7 changes: 7 additions & 0 deletions NuGet.Config
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="AspNetVNext" value="https://www.myget.org/F/aspnetvnext/api/v2" />
<add key="NuGet.org" value="https://nuget.org/api/v2/" />
</packageSources>
</configuration>
28 changes: 28 additions & 0 deletions build.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
@echo off
cd %~dp0

SETLOCAL
SET CACHED_NUGET=%LocalAppData%\NuGet\NuGet.exe

IF EXIST %CACHED_NUGET% goto copynuget
echo Downloading latest version of NuGet.exe...
IF NOT EXIST %LocalAppData%\NuGet md %LocalAppData%\NuGet
@powershell -NoProfile -ExecutionPolicy unrestricted -Command "$ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest 'https://www.nuget.org/nuget.exe' -OutFile '%CACHED_NUGET%'"

:copynuget
IF EXIST .nuget\nuget.exe goto restore
md .nuget
copy %CACHED_NUGET% .nuget\nuget.exe > nul

:restore
IF EXIST packages\KoreBuild goto run
.nuget\NuGet.exe install KoreBuild -ExcludeVersion -o packages -nocache -pre
.nuget\NuGet.exe install Sake -version 0.2 -o packages -ExcludeVersion

IF "%SKIP_KRE_INSTALL%"=="1" goto run
CALL packages\KoreBuild\build\kvm upgrade -runtime CLR -x86
CALL packages\KoreBuild\build\kvm install default -runtime CoreCLR -x86

:run
CALL packages\KoreBuild\build\kvm use default -runtime CLR -x86
packages\Sake\tools\Sake.exe -I packages\KoreBuild\build -f makefile.shade %*
38 changes: 38 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#!/bin/bash

if test `uname` = Darwin; then
cachedir=~/Library/Caches/KBuild
else
if [ -z $XDG_DATA_HOME ]; then
cachedir=$HOME/.local/share
else
cachedir=$XDG_DATA_HOME;
fi
fi
mkdir -p $cachedir

url=https://www.nuget.org/nuget.exe

if test ! -f $cachedir/nuget.exe; then
wget -O $cachedir/nuget.exe $url 2>/dev/null || curl -o $cachedir/nuget.exe --location $url /dev/null
fi

if test ! -e .nuget; then
mkdir .nuget
cp $cachedir/nuget.exe .nuget/nuget.exe
fi

if test ! -d packages/KoreBuild; then
mono .nuget/nuget.exe install KoreBuild -ExcludeVersion -o packages -nocache -pre
mono .nuget/nuget.exe install Sake -version 0.2 -o packages -ExcludeVersion
fi

if ! type k > /dev/null 2>&1; then
source packages/KoreBuild/build/kvm.sh
fi

if ! type k > /dev/null 2>&1; then
kvm upgrade
fi

mono packages/Sake/tools/Sake.exe -I packages/KoreBuild/build -f makefile.shade "$@"
10 changes: 10 additions & 0 deletions makefile.shade
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

var AUTHORS='Autofac Contributors'

use-standard-lifecycle
k-standard-goals

#generate-resx .resx description='Converts .resx files to .Designer.cs' target='initialize'

#xml-docs-test .clean .build-compile description='Check generated XML documentation files for errors' target='test'
k-xml-docs-test
80 changes: 41 additions & 39 deletions src/Autofac/project.json
Original file line number Diff line number Diff line change
@@ -1,41 +1,43 @@
{
"version": "4.0.0-alpha1",
"authors": [
"Autofac Contributors"
],
"description": "Core assembly for the Autofac Inversion of Control container.",
"resources": "**/**/*.resx",
"dependencies": {
"System.Collections": "4.0.10-beta-22416",
"System.ComponentModel": "4.0.0-beta-22416",
"System.Diagnostics.Contracts": "4.0.0-beta-22416",
"System.Diagnostics.Debug": "4.0.10-beta-22416",
"System.Diagnostics.Tools": "4.0.0-beta-22416",
"System.Globalization": "4.0.10-beta-22416",
"System.Linq": "4.0.0-beta-22416",
"System.Linq.Expressions": "4.0.0-beta-22416",
"System.Reflection": "4.0.10-beta-22416",
"System.Reflection.Extensions": "4.0.0-beta-22416",
"System.Reflection.TypeExtensions": "4.0.0-beta-22416",
"System.Resources.ResourceManager": "4.0.0-beta-22416",
"System.Runtime": "4.0.20-beta-22416",
"System.Threading.Thread": "4.0.0-beta-22416",
"System.Threading": "4.0.0-beta-22416",
"System.Threading.Tasks": "4.0.10-beta-22416"
},
"frameworks": {
"aspnet50": { },
"aspnetcore50": {
"compilationOptions": {
"define": [ "ASPNETCORE50" ]
}
},
"net45+win+wpa81+wp80+MonoAndroid10+MonoTouch10": {
"wrappedProject": "Autofac.csproj",
"bin": {
"assembly": "obj/{configuration}/Autofac.dll",
"pdb": "obj/{configuration}/Autofac.pdb"
}
}
}
"version": "4.0.0-alpha1",
"authors": ["Autofac Contributors"],
"description": "Core assembly for the Autofac Inversion of Control container.",
"compilationOptions": {
"warningsAsErrors": true
},
"code": ["**\\*.cs"],
"resources": "**\\*.resx",
"dependencies": {
"System.Collections": "4.0.10-beta-22416",
"System.ComponentModel": "4.0.0-beta-22416",
"System.Diagnostics.Contracts": "4.0.0-beta-22416",
"System.Diagnostics.Debug": "4.0.10-beta-22416",
"System.Diagnostics.Tools": "4.0.0-beta-22416",
"System.Globalization": "4.0.10-beta-22416",
"System.Linq": "4.0.0-beta-22416",
"System.Linq.Expressions": "4.0.0-beta-22416",
"System.Reflection": "4.0.10-beta-22416",
"System.Reflection.Extensions": "4.0.0-beta-22416",
"System.Reflection.TypeExtensions": "4.0.0-beta-22416",
"System.Resources.ResourceManager": "4.0.0-beta-22416",
"System.Runtime": "4.0.20-beta-22416",
"System.Threading.Thread": "4.0.0-beta-22416",
"System.Threading": "4.0.0-beta-22416",
"System.Threading.Tasks": "4.0.10-beta-22416"
},
"frameworks": {
"aspnet50": {},
"aspnetcore50": {
"compilationOptions": {
"define": ["ASPNETCORE50"]
}
},
"net45+win+wpa81+wp80+MonoAndroid10+MonoTouch10": {
"wrappedProject": "Autofac.csproj",
"bin": {
"assembly": "obj/{configuration}/Autofac.dll",
"pdb": "obj/{configuration}/Autofac.pdb"
}
}
}
}

0 comments on commit 224bede

Please sign in to comment.