From: Dan Vanderkam Date: Tue, 24 Apr 2012 21:05:12 +0000 (-0400) Subject: add @license tags in various places, including dygraph-combined.js X-Git-Tag: v1.0.0~277 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=41da6a866e2c62655519ece637543aaa4b764c40;p=dygraphs.git add @license tags in various places, including dygraph-combined.js --- diff --git a/dygraph-range-selector.js b/dygraph-range-selector.js index fd50bd0..9a28aa9 100644 --- a/dygraph-range-selector.js +++ b/dygraph-range-selector.js @@ -1,5 +1,8 @@ -// Copyright 2011 Paul Felix (paul.eric.felix@gmail.com) -// All Rights Reserved. +/* + * @license + * Copyright 2011 Paul Felix (paul.eric.felix@gmail.com) + * MIT-licensed (http://opensource.org/licenses/MIT) + */ /** * @fileoverview This file contains the DygraphRangeSelector class used to provide diff --git a/generate-combined.sh b/generate-combined.sh index 038aff8..304b1cf 100755 --- a/generate-combined.sh +++ b/generate-combined.sh @@ -25,9 +25,8 @@ plugins/install.js \ java -jar yuicompressor-2.4.2.jar /tmp/dygraph.js \ > /tmp/dygraph-packed.js -# TODO(danvk): ensure the dygraphs copyright, etc. gets into the packed js. - -cat \ -/tmp/dygraph-packed.js \ -> dygraph-combined.js +( + echo '/*! dygraphs v1.2 dygraphs.com | dygraphs.com/license */' + cat /tmp/dygraph-packed.js +) > dygraph-combined.js chmod a+r dygraph-combined.js diff --git a/plugins/legend.js b/plugins/legend.js index df2ce1e..68a6762 100644 --- a/plugins/legend.js +++ b/plugins/legend.js @@ -1,3 +1,9 @@ +/** + * @license + * Copyright 2012 Dan Vanderkam (danvdk@gmail.com) + * MIT-licensed (http://opensource.org/licenses/MIT) + */ + Dygraph.Plugins.Legend = (function() { /*