Repository: lucenenet Updated Branches: refs/heads/master 89ae41bca -> d8608463a
build\build.ps1: Added license headers to the generated files. Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/77ae2450 Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/77ae2450 Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/77ae2450 Branch: refs/heads/master Commit: 77ae2450941f308b1201e55ab88462c5bb824c5f Parents: 5e7ec8a Author: Shad Storhaug <[email protected]> Authored: Wed Apr 26 19:37:16 2017 +0700 Committer: Shad Storhaug <[email protected]> Committed: Wed Apr 26 19:43:36 2017 +0700 ---------------------------------------------------------------------- build/build.ps1 | 44 +++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 43 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/lucenenet/blob/77ae2450/build/build.ps1 ---------------------------------------------------------------------- diff --git a/build/build.ps1 b/build/build.ps1 index 7f60e92..75d86ef 100644 --- a/build/build.ps1 +++ b/build/build.ps1 @@ -268,7 +268,23 @@ param( $assemblyVersion = $Matches[0] $assemblyVersion = "$assemblyVersion.0.0" - $asmInfo = "using System; + $asmInfo = "/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the ""License""); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an ""AS IS"" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +using System; using System.Reflection; [assembly: AssemblyProduct(""$product"")] @@ -291,6 +307,32 @@ param( [string]$file = $(throw "file is a required parameter.") ) $buildBat = " +@echo off +GOTO endcommentblock +:: ----------------------------------------------------------------------------------- +:: Licensed to the Apache Software Foundation (ASF) under one or more +:: contributor license agreements. See the NOTICE file distributed with +:: this work for additional information regarding copyright ownership. +:: The ASF licenses this file to You under the Apache License, Version 2.0 +:: (the ""License""); you may not use this file except in compliance with +:: the License. You may obtain a copy of the License at +:: +:: http://www.apache.org/licenses/LICENSE-2.0 +:: +:: Unless required by applicable law or agreed to in writing, software +:: distributed under the License is distributed on an ""AS IS"" BASIS, +:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +:: See the License for the specific language governing permissions and +:: limitations under the License. +:: +:: This file will build Lucene.Net and create the NuGet packages. +:: +:: Syntax: +:: build[.bat] +:: +:: ----------------------------------------------------------------------------------- +:endcommentblock + powershell -ExecutionPolicy Bypass -Command ""& { Import-Module .\build\psake.psm1; Invoke-Psake .\build\build.ps1 -properties @{prepareForBuild='false';backup_files='false'} }"" " $dir = [System.IO.Path]::GetDirectoryName($file)
