Merge pull request #2151 from bartvde/license
Builds should include license
This commit is contained in:
@@ -196,6 +196,8 @@ function build(config, paths, callback) {
|
|||||||
function addHeader(compiledSource, callback) {
|
function addHeader(compiledSource, callback) {
|
||||||
exec('git describe --tags', function(error, stdout, stderr) {
|
exec('git describe --tags', function(error, stdout, stderr) {
|
||||||
var header = '// OpenLayers 3. See http://ol3.js.org/\n';
|
var header = '// OpenLayers 3. See http://ol3.js.org/\n';
|
||||||
|
header += '// License: https://raw.githubusercontent.com/openlayers/' +
|
||||||
|
'ol3/master/LICENSE.md\n';
|
||||||
if (stdout !== '') {
|
if (stdout !== '') {
|
||||||
header += '// Version: ' + stdout + '\n';
|
header += '// Version: ' + stdout + '\n';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user