Move codemirror LICENSE onto the codemirror java_library()

This fixes the name shown in the generated licenses.txt and HTML
to be "codemirror" and not "codemirror_jar".

Change-Id: Ib90d97c022c69179943dfa827f68e62fcea87825
This commit is contained in:
Shawn Pearce 2013-05-29 16:39:57 -07:00
parent 1d89e26411
commit d251f3a0ed

View File

@ -5,14 +5,17 @@ URL = 'http://codemirror.net/codemirror-%s.zip' % VERSION
prebuilt_jar(
name = 'codemirror',
binary_jar = genfile('codemirror.jar'),
deps = [':codemirror__jar'],
deps = [
':jar',
'//lib:LICENSE-codemirror',
],
visibility = ['PUBLIC'],
)
# TODO(sop) Repackage by license boundaries.
# TODO(sop) Minify with Closure JS compiler.
genrule(
name = 'codemirror__jar',
name = 'jar',
cmd = ';'.join([
'cd $TMP',
'mkdir net META-INF',
@ -22,10 +25,7 @@ genrule(
'zip -r $OUT *'
]),
srcs = [genfile('codemirror-' + VERSION + '.zip')],
deps = [
':download',
'//lib:LICENSE-codemirror',
],
deps = [':download'],
out = 'codemirror.jar',
)