From 41da6a866e2c62655519ece637543aaa4b764c40 Mon Sep 17 00:00:00 2001 From: Dan Vanderkam Date: Tue, 24 Apr 2012 17:05:12 -0400 Subject: [PATCH] add @license tags in various places, including dygraph-combined.js --- dygraph-range-selector.js | 7 +++++-- generate-combined.sh | 9 ++++----- plugins/legend.js | 6 ++++++ 3 files changed, 15 insertions(+), 7 deletions(-) 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() { /* -- 2.7.4