Permalink
Browse files

We're moving

  • Loading branch information...
1 parent 90797af commit 2ba781a7b57ba643692924d2a874888d3b852ba3 @jbuck jbuck committed Mar 5, 2012
Showing with 1 addition and 46,270 deletions.
  1. +0 −5 .gitignore
  2. +0 −4 .gitmodules
  3. +0 −23 AUTHORS
  4. +0 −20 LICENSE
  5. +0 −8 LICENSE_HEADER
  6. +0 −270 Makefile
  7. +1 −0 README
  8. BIN build/google-compiler-20100917.jar
  9. BIN build/js.jar
  10. +0 −43 build/jslint-check.js
  11. +0 −5,500 build/jslint.js
  12. BIN demos/semantic_video/images/arro.png
  13. BIN demos/semantic_video/images/body_bg.jpg
  14. BIN demos/semantic_video/images/bubble_pointer.png
  15. BIN demos/semantic_video/images/drumbeat_logo.png
  16. BIN demos/semantic_video/images/expand_collapse.png
  17. BIN demos/semantic_video/images/footer.jpg
  18. BIN demos/semantic_video/images/footer_bg.jpg
  19. BIN demos/semantic_video/images/footer_border.jpg
  20. BIN demos/semantic_video/images/footer_drumbeat.png
  21. BIN demos/semantic_video/images/footer_webmade.png
  22. BIN demos/semantic_video/images/footnote.png
  23. BIN demos/semantic_video/images/header.jpg
  24. BIN demos/semantic_video/images/logo_flickr.png
  25. BIN demos/semantic_video/images/logo_google_news.png
  26. BIN demos/semantic_video/images/logo_lastfm.png
  27. BIN demos/semantic_video/images/logo_tumblr.png
  28. BIN demos/semantic_video/images/logo_twitter.png
  29. BIN demos/semantic_video/images/logo_wiki.png
  30. BIN demos/semantic_video/images/overlay/.DS_Store
  31. BIN demos/semantic_video/images/overlay/flickr.png
  32. BIN demos/semantic_video/images/overlay/footnote.png
  33. BIN demos/semantic_video/images/overlay/lastfm.png
  34. BIN demos/semantic_video/images/overlay/location.png
  35. BIN demos/semantic_video/images/overlay/twitter.png
  36. BIN demos/semantic_video/images/overlay/wiki.png
  37. BIN demos/semantic_video/images/video_icon.png
  38. +0 −271 demos/semantic_video/index.html
  39. +0 −85 demos/semantic_video/popcorn.applyclass.js
  40. +0 −750 demos/semantic_video/style.css
  41. +0 −317 demos/semantic_video/xml/webMadeMovies.xml
  42. +0 −115 demos/twittervideo/twitterVideo.html
  43. +0 −65 effects/applyclass/popcorn.applyclass.html
  44. +0 −80 effects/applyclass/popcorn.applyclass.js
  45. +0 −36 effects/applyclass/style.css
  46. +0 −64 example.html
  47. +0 −1 modules/sequence
  48. +0 −64 modules/timeline-sources/popcorn.timeline-sources.js
  49. +0 −43 modules/timeline-sources/popcorn.timeline-sources.unit.html
  50. +0 −79 modules/timeline-sources/popcorn.timeline-sources.unit.js
  51. +0 −49 parsers/parserJSON/data/audio.json
  52. +0 −49 parsers/parserJSON/data/data.json
  53. +0 −49 parsers/parserJSON/data/video.json
  54. +0 −47 parsers/parserJSON/popcorn.parserJSON.html
  55. +0 −41 parsers/parserJSON/popcorn.parserJSON.js
  56. +0 −73 parsers/parserJSON/popcorn.parserJSON.unit.html
  57. +0 −140 parsers/parserJSON/popcorn.parserJSON.unit.js
  58. +0 −8 parsers/parserSBV/data/data.sbv
  59. +0 −48 parsers/parserSBV/popcorn.parserSBV.html
  60. +0 −100 parsers/parserSBV/popcorn.parserSBV.js
  61. +0 −47 parsers/parserSBV/popcorn.parserSBV.unit.html
  62. +0 −58 parsers/parserSBV/popcorn.parserSBV.unit.js
  63. +0 −16 parsers/parserSRT/data/data.srt
  64. +0 −40 parsers/parserSRT/data/unit.srt
  65. +0 −57 parsers/parserSRT/popcorn.parserSRT.html
  66. +0 −119 parsers/parserSRT/popcorn.parserSRT.js
  67. +0 −47 parsers/parserSRT/popcorn.parserSRT.unit.html
  68. +0 −108 parsers/parserSRT/popcorn.parserSRT.unit.js
  69. +0 −23 parsers/parserSSA/data/data.ssa
  70. +0 −47 parsers/parserSSA/popcorn.parserSSA.html
  71. +0 −142 parsers/parserSSA/popcorn.parserSSA.js
  72. +0 −46 parsers/parserSSA/popcorn.parserSSA.unit.html
  73. +0 −56 parsers/parserSSA/popcorn.parserSSA.unit.js
  74. +0 −75 parsers/parserTTML/data/data.ttml
  75. +0 −75 parsers/parserTTML/data/unit.ttml
  76. +0 −56 parsers/parserTTML/popcorn.parserTTML.html
  77. +0 −170 parsers/parserTTML/popcorn.parserTTML.js
  78. +0 −46 parsers/parserTTML/popcorn.parserTTML.unit.html
  79. +0 −103 parsers/parserTTML/popcorn.parserTTML.unit.js
  80. +0 −25 parsers/parserTTXT/data/data.TTXT
  81. +0 −25 parsers/parserTTXT/data/unit.TTXT
  82. +0 −47 parsers/parserTTXT/popcorn.parserTTXT.html
  83. +0 −73 parsers/parserTTXT/popcorn.parserTTXT.js
  84. +0 −47 parsers/parserTTXT/popcorn.parserTTXT.unit.html
  85. +0 −61 parsers/parserTTXT/popcorn.parserTTXT.unit.js
  86. +0 −40 parsers/parserVTT/data/data.vtt
  87. +0 −32 parsers/parserVTT/data/unit.vtt
  88. +0 −66 parsers/parserVTT/popcorn.parserVTT.html
  89. +0 −144 parsers/parserVTT/popcorn.parserVTT.js
  90. +0 −47 parsers/parserVTT/popcorn.parserVTT.unit.html
  91. +0 −66 parsers/parserVTT/popcorn.parserVTT.unit.js
  92. +0 −9 parsers/parserXML/data/data.XML
  93. +0 −21 parsers/parserXML/data/unit.XML
  94. +0 −37 parsers/parserXML/popcorn.parserXML.html
  95. +0 −121 parsers/parserXML/popcorn.parserXML.js
  96. +0 −47 parsers/parserXML/popcorn.parserXML.unit.html
  97. +0 −62 parsers/parserXML/popcorn.parserXML.unit.js
  98. +0 −140 players/soundcloud/lib/soundcloud.player.api.js
  99. +0 −241 players/soundcloud/popcorn.soundcloud.html
  100. +0 −695 players/soundcloud/popcorn.soundcloud.js
  101. +0 −44 players/soundcloud/popcorn.soundcloud.unit.html
  102. +0 −402 players/soundcloud/popcorn.soundcloud.unit.js
  103. +0 −233 players/vimeo/popcorn.vimeo.html
  104. +0 −263 players/vimeo/popcorn.vimeo.js
  105. +0 −30 players/vimeo/popcorn.vimeo.unit.html
  106. +0 −424 players/vimeo/popcorn.vimeo.unit.js
  107. +0 −206 players/youtube/popcorn.youtube.html
  108. +0 −235 players/youtube/popcorn.youtube.js
  109. +0 −41 players/youtube/popcorn.youtube.unit.html
  110. +0 −449 players/youtube/popcorn.youtube.unit.js
  111. +0 −60 plugins/attribution/popcorn.attribution.html
  112. +0 −188 plugins/attribution/popcorn.attribution.js
  113. +0 −47 plugins/attribution/popcorn.attribution.unit.html
  114. +0 −79 plugins/attribution/popcorn.attribution.unit.js
  115. +0 −96 plugins/code/popcorn.code.html
  116. +0 −182 plugins/code/popcorn.code.js
  117. +0 −51 plugins/code/popcorn.code.unit.html
  118. +0 −86 plugins/code/popcorn.code.unit.js
  119. +0 −56 plugins/documentcloud/popcorn.documentcloud.html
  120. +0 −254 plugins/documentcloud/popcorn.documentcloud.js
  121. +0 −48 plugins/documentcloud/popcorn.documentcloud.unit.html
  122. +0 −99 plugins/documentcloud/popcorn.documentcloud.unit.js
  123. +0 −108 plugins/facebook/popcorn.facebook.html
  124. +0 −266 plugins/facebook/popcorn.facebook.js
  125. +0 −52 plugins/facebook/popcorn.facebook.unit.html
  126. +0 −155 plugins/facebook/popcorn.facebook.unit.js
  127. +0 −76 plugins/flickr/popcorn.flickr.html
  128. +0 −235 plugins/flickr/popcorn.flickr.js
  129. +0 −49 plugins/flickr/popcorn.flickr.unit.html
  130. +0 −99 plugins/flickr/popcorn.flickr.unit.js
  131. +0 −54 plugins/footnote/popcorn.footnote.html
  132. +0 −95 plugins/footnote/popcorn.footnote.js
  133. +0 −48 plugins/footnote/popcorn.footnote.unit.html
  134. +0 −102 plugins/footnote/popcorn.footnote.unit.js
  135. +0 −59 plugins/gml/popcorn.gml.html
  136. +0 −211 plugins/gml/popcorn.gml.js
  137. +0 −45 plugins/gml/popcorn.gml.unit.html
  138. +0 −67 plugins/gml/popcorn.gml.unit.js
  139. +0 −63 plugins/googlefeed/popcorn.googlefeed.html
  140. +0 −184 plugins/googlefeed/popcorn.googlefeed.js
  141. +0 −47 plugins/googlefeed/popcorn.googlefeed.unit.html
  142. +0 −86 plugins/googlefeed/popcorn.googlefeed.unit.js
  143. +0 −184 plugins/googlemap/popcorn.googlemap.html
  144. +0 −393 plugins/googlemap/popcorn.googlemap.js
  145. +0 −50 plugins/googlemap/popcorn.googlemap.unit.html
  146. +0 −112 plugins/googlemap/popcorn.googlemap.unit.js
  147. +0 −63 plugins/image/popcorn.image.html
  148. +0 −140 plugins/image/popcorn.image.js
  149. +0 −45 plugins/image/popcorn.image.unit.html
  150. +0 −87 plugins/image/popcorn.image.unit.js
  151. +0 −79 plugins/index.html
  152. +0 −86 plugins/lastfm/popcorn.lastfm.html
  153. +0 −139 plugins/lastfm/popcorn.lastfm.js
  154. +0 −49 plugins/lastfm/popcorn.lastfm.unit.html
  155. +0 −91 plugins/lastfm/popcorn.lastfm.unit.js
  156. +0 −110 plugins/linkedin/popcorn.linkedin.html
  157. +0 −236 plugins/linkedin/popcorn.linkedin.js
  158. +0 −49 plugins/linkedin/popcorn.linkedin.unit.html
  159. +0 −195 plugins/linkedin/popcorn.linkedin.unit.js
  160. +0 −55 plugins/lowerthird/popcorn.lowerthird.html
  161. +0 −127 plugins/lowerthird/popcorn.lowerthird.js
  162. +0 −47 plugins/lowerthird/popcorn.lowerthird.unit.html
  163. +0 −77 plugins/lowerthird/popcorn.lowerthird.unit.js
  164. +0 −141 plugins/mustache/popcorn.mustache.html
  165. +0 −209 plugins/mustache/popcorn.mustache.js
  166. +0 −50 plugins/mustache/popcorn.mustache.unit.html
  167. +0 −103 plugins/mustache/popcorn.mustache.unit.js
  168. +0 −85 plugins/openmap/popcorn.openmap.html
  169. +0 −337 plugins/openmap/popcorn.openmap.js
  170. +0 −48 plugins/openmap/popcorn.openmap.unit.html
  171. +0 −108 plugins/openmap/popcorn.openmap.unit.js
  172. +0 −55 plugins/pause/popcorn.pause.html
  173. +0 −29 plugins/pause/popcorn.pause.js
  174. +0 −70 plugins/pause/popcorn.pause.unit.html
  175. +0 −68 plugins/pause/popcorn.pause.unit.js
  176. +0 −70 plugins/processing/popcorn.processing.html
  177. +0 −162 plugins/processing/popcorn.processing.js
  178. +0 −45 plugins/processing/popcorn.processing.unit.html
  179. +0 −148 plugins/processing/popcorn.processing.unit.js
  180. +0 −121 plugins/processing/test.pjs
  181. +0 −81 plugins/processing/test2.pjs
  182. +0 −49 plugins/subtitle/popcorn.subtitle.html
  183. +0 −143 plugins/subtitle/popcorn.subtitle.js
  184. +0 −61 plugins/subtitle/popcorn.subtitle.unit.html
  185. +0 −214 plugins/subtitle/popcorn.subtitle.unit.js
  186. +0 −66 plugins/tagthisperson/popcorn.tagthisperson.html
  187. +0 −136 plugins/tagthisperson/popcorn.tagthisperson.js
  188. +0 −48 plugins/tagthisperson/popcorn.tagthisperson.unit.html
  189. +0 −77 plugins/tagthisperson/popcorn.tagthisperson.unit.js
  190. +0 −11 plugins/timeline/popcorn.timeline.css
  191. +0 −92 plugins/timeline/popcorn.timeline.html
  192. +0 −144 plugins/timeline/popcorn.timeline.js
  193. +0 −49 plugins/timeline/popcorn.timeline.unit.html
  194. +0 −133 plugins/timeline/popcorn.timeline.unit.js
  195. +0 −149 plugins/tumblr/popcorn.tumblr.html
  196. +0 −411 plugins/tumblr/popcorn.tumblr.js
  197. +0 −54 plugins/tumblr/popcorn.tumblr.unit.html
  198. +0 −209 plugins/tumblr/popcorn.tumblr.unit.js
  199. +0 −52 plugins/twitter/popcorn.twitter.html
  200. +0 −184 plugins/twitter/popcorn.twitter.js
  201. +0 −47 plugins/twitter/popcorn.twitter.unit.html
  202. +0 −120 plugins/twitter/popcorn.twitter.unit.js
  203. +0 −58 plugins/webpage/popcorn.webpage.html
  204. +0 −110 plugins/webpage/popcorn.webpage.js
  205. +0 −47 plugins/webpage/popcorn.webpage.unit.html
  206. +0 −74 plugins/webpage/popcorn.webpage.unit.js
  207. +0 −54 plugins/wikipedia/popcorn.wikipedia.html
  208. +0 −184 plugins/wikipedia/popcorn.wikipedia.js
  209. +0 −47 plugins/wikipedia/popcorn.wikipedia.unit.html
  210. +0 −90 plugins/wikipedia/popcorn.wikipedia.unit.js
  211. +0 −68 plugins/wordriver/popcorn.wordriver.html
  212. +0 −164 plugins/wordriver/popcorn.wordriver.js
  213. +0 −45 plugins/wordriver/popcorn.wordriver.unit.html
  214. +0 −110 plugins/wordriver/popcorn.wordriver.unit.js
  215. +0 −2,226 popcorn.js
  216. +0 −61 readme.md
  217. +0 −110 test/archaic.html
  218. +0 −242 test/butter.unit.js
  219. +0 −98 test/butter_test.html
  220. +0 −1 test/data/jsonp.json
  221. +0 −14 test/data/jsonp.php
  222. +0 −10 test/data/parseMissing.json
  223. +0 −10 test/data/parserAudio.json
  224. +0 −10 test/data/parserData.json
  225. +0 −1 test/data/remoteA.js
  226. +0 −1 test/data/remoteB.js
  227. +0 −1 test/data/test.js
  228. +0 −11 test/data/test.ttml
  229. +0 −1 test/data/test.txt
  230. +0 −11 test/data/test.xml
  231. +0 −3 test/data/testfunction.js
  232. +0 −110 test/index.html
  233. BIN test/italia.mp4
  234. BIN test/italia.ogg
  235. +0 −7,179 test/jquery.js
  236. +0 −65 test/popcorn.unit.archaic.js
  237. +0 −3 test/popcorn.unit.archaic.setup.js
  238. +0 −4,425 test/popcorn.unit.js
  239. +0 −18 test/popcorn.unit.setup.js
  240. BIN test/poster.png
  241. +0 −148 test/qunit/qunit.css
  242. +0 −1,265 test/qunit/qunit.js
  243. +0 −107 test/ready.html
  244. BIN test/trailer.mp4
  245. BIN test/trailer.ogv
  246. BIN test/trailer.webm
  247. +0 −7 tools/cleaner.js
  248. +0 −4,718 tools/jslint-cmdline.js
  249. +0 −44 tools/jslint.py
  250. +0 −28 tools/jsshellhelper.py
View
@@ -1,5 +0,0 @@
-.DS_Store
-dist
-*~
-\.\#*
-\#*\#
View
@@ -1,4 +0,0 @@
-
-[submodule "modules/sequence"]
- path = modules/sequence
- url = https://github.com/rwldrn/popcorn.sequence.git
View
@@ -1,23 +0,0 @@
-Anna Sobiepanek
-Rick Waldron
-Scott Downe
-David Humphrey
-Nick Cammarata
-Daniel Hodgin
-Daniel Brooks
-Brett Gaylor
-Boaz Sender
-Dan Ventura
-Brad Chen
-Minoo Ziaei
-Cesar Gomes
-David Seifried
-Steven Weerdenburg
-Christopher De Cairos
-Mohammed Buttu
-Cole Gillespie
-Nick Doiron
-Bobby Richter
-Jon Buckley
-Mathew Schranz
-Brian Chirls
View
@@ -1,20 +0,0 @@
-Copyright (c) 2010, 2011 Mozilla Foundation
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
View
@@ -1,8 +0,0 @@
-/*
- * popcorn.js version @VERSION
- * http://popcornjs.org
- *
- * Copyright 2011, Mozilla Foundation
- * Licensed under the MIT license
- */
-
View
@@ -1,270 +0,0 @@
-
-PREFIX = .
-BUILD_DIR = ${PREFIX}/build
-DIST_DIR = ${PREFIX}/dist
-PLUGINS_DIR = ${PREFIX}/plugins
-PARSERS_DIR = ${PREFIX}/parsers
-PLAYERS_DIR = ${PREFIX}/players
-EFFECTS_DIR = $(PREFIX)/effects
-MODULES_DIR = $(PREFIX)/modules
-
-# Version number used in naming release files. Defaults to git commit sha.
-VERSION ?= $(shell git show -s --pretty=format:%h)
-
-RHINO ?= java -jar ${BUILD_DIR}/js.jar
-
-CLOSURE_COMPILER = ${BUILD_DIR}/google-compiler-20100917.jar
-compile = @@${MINJAR} $(1) \
- --compilation_level SIMPLE_OPTIMIZATIONS \
- --js_output_file $(2)
-
-# minify
-MINJAR ?= java -jar ${CLOSURE_COMPILER}
-
-# source
-POPCORN_SRC = ${PREFIX}/popcorn.js
-
-# distribution files
-POPCORN_DIST = ${DIST_DIR}/popcorn.js
-POPCORN_MIN = ${DIST_DIR}/popcorn.min.js
-
-# modules
-MODULES_DIST = ${DIST_DIR}/popcorn.modules.js
-MODULES_MIN = ${DIST_DIR}/popcorn.modules.min.js
-
-# plugins
-PLUGINS_DIST = ${DIST_DIR}/popcorn.plugins.js
-PLUGINS_MIN = ${DIST_DIR}/popcorn.plugins.min.js
-
-# plugins
-PARSERS_DIST = ${DIST_DIR}/popcorn.parsers.js
-PARSERS_MIN = ${DIST_DIR}/popcorn.parsers.min.js
-
-# players
-PLAYERS_DIST = ${DIST_DIR}/popcorn.players.js
-PLAYERS_MIN = ${DIST_DIR}/popcorn.players.min.js
-
-# effects
-EFFECTS_DIST = $(DIST_DIR)/popcorn.effects.js
-EFFECTS_MIN = $(DIST_DIR)/popcorn.effects.min.js
-
-# Grab all popcorn.<plugin-name>.js files from plugins dir
-PLUGINS_SRC := $(filter-out %unit.js, $(shell find ${PLUGINS_DIR} -name 'popcorn.*.js' -print))
-
-# Grab all popcorn.<plugin-name>.js files from parsers dir
-PARSERS_SRC := $(filter-out %unit.js, $(shell find ${PARSERS_DIR} -name 'popcorn.*.js' -print))
-
-# Grab all popcorn.<player-name>.js files from players dir
-PLAYERS_SRC := $(filter-out %unit.js, $(shell find ${PLAYERS_DIR} -name 'popcorn.*.js' -print))
-
-# Grab all popcorn.<effect-name>.js files from effects dir
-EFFECTS_SRC := $(filter-out %unit.js, $(shell find $(EFFECTS_DIR) -name 'popcorn.*.js' -print))
-
-# Grab all popcorn.<Module-name>.js files from modules dir
-MODULES_SRC := $(filter-out %unit.js, $(shell find $(MODULES_DIR) -name 'popcorn.*.js' -print))
-
-# Grab all popcorn.<plugin-name>.unit.js files from plugins dir
-PLUGINS_UNIT := $(shell find ${PLUGINS_DIR} -name 'popcorn.*.unit.js' -print)
-
-# Grab all popcorn.<parser-name>.unit.js files from parsers dir
-PARSERS_UNIT := $(shell find ${PARSERS_DIR} -name 'popcorn.*.unit.js' -print)
-
-# Grab all popcorn.<player-name>.unit.js files from players dir
-PLAYERS_UNIT := $(shell find ${PLAYERS_DIR} -name 'popcorn.*.unit.js' -print)
-
-# Grab all popcorn.<effects>.unit.js files from effects dir
-EFFECTS_UNIT := $(shell find $(EFFECTS_DIR) -name 'popcorn.*.unit.js' -print)
-
-# Grab all popcorn.<module-name>.unit.js files from modules dir
-MODULES_UNIT := $(shell find $(MODULES_DIR) -name 'popcorn.*.unit.js' -print)
-
-# popcorn + plugins
-POPCORN_COMPLETE_LIST := --js ${POPCORN_SRC} \
- $(shell for js in ${MODULES_SRC} ; do echo --js $$js ; done) \
- $(shell for js in ${EFFECTS_SRC} ; do echo --js $$js ; done) \
- $(shell for js in ${PLUGINS_SRC} ; do echo --js $$js ; done) \
- $(shell for js in ${PARSERS_SRC} ; do echo --js $$js ; done) \
- $(shell for js in ${PLAYERS_SRC} ; do echo --js $$js ; done)
-POPCORN_COMPLETE_DIST = ${DIST_DIR}/popcorn-complete.js
-POPCORN_COMPLETE_MIN = ${DIST_DIR}/popcorn-complete.min.js
-
-# Create a versioned license header for js files we ship
-add_license = cat $(PREFIX)/LICENSE_HEADER | sed -e 's/@VERSION/${VERSION}/' > $(1).__hdr__ ; \
- cat $(1).__hdr__ $(1) >> $(1).__tmp__ ; rm -f $(1).__hdr__ ; \
- mv $(1).__tmp__ $(1)
-
-# Create a version parameter for Popcorn
-add_version = cat $(1) | sed -e 's/@VERSION/${VERSION}/' > $(1).__tmp__ ; \
- mv $(1).__tmp__ $(1)
-
-# Run the file through jslint
-run_lint = @@$(RHINO) build/jslint-check.js $(1)
-
-all: setup popcorn plugins parsers players effects complete min
- @@echo "Popcorn build complete. To create a testing mirror, run: make testing."
-
-check: lint lint-plugins lint-parsers lint-players lint-effects
-
-${DIST_DIR}:
- @@mkdir -p ${DIST_DIR}
-
-popcorn: ${POPCORN_DIST}
-
-${POPCORN_DIST}: $(POPCORN_SRC) | $(DIST_DIR)
- @@echo "Building" $(POPCORN_DIST)
- @@cp $(POPCORN_SRC) $(POPCORN_DIST)
- @@$(call add_license, $(POPCORN_DIST))
- @@$(call add_version, $(POPCORN_DIST))
-
-min: setup ${POPCORN_MIN} ${MODULES_MIN} ${PLUGINS_MIN} ${PARSERS_MIN} ${PLAYERS_MIN} $(EFFECTS_MIN) ${POPCORN_COMPLETE_MIN}
-
-${POPCORN_MIN}: ${POPCORN_DIST}
- @@echo "Building" ${POPCORN_MIN}
- @@$(call compile, --js $(POPCORN_DIST), $(POPCORN_MIN))
- @@$(call add_license, $(POPCORN_MIN))
- @@$(call add_version, $(POPCORN_MIN))
-
-${POPCORN_COMPLETE_MIN}: ${POPCORN_SRC} ${MODULES_SRC} ${PLUGINS_SRC} ${PARSERS_SRC} $(EFFECTS_SRC) ${DIST_DIR}
- @@echo "Building" ${POPCORN_COMPLETE_MIN}
- @@$(call compile, $(POPCORN_COMPLETE_LIST), $(POPCORN_COMPLETE_MIN))
- @@$(call add_license, $(POPCORN_COMPLETE_MIN))
- @@$(call add_version, $(POPCORN_COMPLETE_MIN))
-
-modules: setup ${MODULES_DIST}
-
-${MODULES_MIN}: ${MODULES_DIST}
- @@echo "Building" ${MODULES_MIN}
- @@$(call compile, $(shell for js in ${MODULES_SRC} ; do echo --js $$js ; done), ${MODULES_MIN})
-
-${MODULES_DIST}: ${MODULES_SRC} ${DIST_DIR}
- @@echo "Building ${MODULES_DIST}"
- @@cat ${MODULES_SRC} > ${MODULES_DIST}
-
-plugins: ${PLUGINS_DIST}
-
-${PLUGINS_MIN}: ${PLUGINS_DIST}
- @@echo "Building" ${PLUGINS_MIN}
- @@$(call compile, $(shell for js in ${PLUGINS_SRC} ; do echo --js $$js ; done), ${PLUGINS_MIN})
-
-${PLUGINS_DIST}: ${PLUGINS_SRC} ${DIST_DIR}
- @@echo "Building ${PLUGINS_DIST}"
- @@cat ${PLUGINS_SRC} > ${PLUGINS_DIST}
-
-parsers: ${PARSERS_DIST}
-
-${PARSERS_MIN}: ${PARSERS_DIST}
- @@echo "Building" ${PARSERS_MIN}
- @@$(call compile, $(shell for js in ${PARSERS_SRC} ; do echo --js $$js ; done), ${PARSERS_MIN})
-
-${PARSERS_DIST}: ${PARSERS_SRC} ${DIST_DIR}
- @@echo "Building ${PARSERS_DIST}"
- @@cat ${PARSERS_SRC} > ${PARSERS_DIST}
-
-players: ${PLAYERS_DIST}
-
-${PLAYERS_MIN}: ${PLAYERS_DIST}
- @@echo "Building" ${PLAYERS_MIN}
- @@$(call compile, $(shell for js in ${PLAYERS_SRC} ; do echo --js $$js ; done), ${PLAYERS_MIN})
-
-${PLAYERS_DIST}: ${PLAYERS_SRC} ${DIST_DIR}
- @@echo "Building ${PLAYERS_DIST}"
- @@cat ${PLAYERS_SRC} > ${PLAYERS_DIST}
-
-effects: $(EFFECTS_DIST)
-
-$(EFFECTS_MIN): $(EFFECTS_DIST)
- @@echo "Building" $(EFFECTS_MIN)
- @@$(call compile, $(shell for js in $(EFFECTS_SRC) ; do echo --js $$js ; done), $(EFFECTS_MIN))
-
-$(EFFECTS_DIST): $(EFFECTS_SRC) $(DIST_DIR)
- @@echo "Building $(EFFECTS_DIST)"
- @@cat $(EFFECTS_SRC) > $(EFFECTS_DIST)
-
-complete: setup ${POPCORN_SRC} ${MODULES_SRC} ${PARSERS_SRC} ${PLUGINS_SRC} ${PLAYERS_SRC} $(EFFECTS_SRC) ${DIST_DIR}
- @@echo "Building popcorn + modules + plugins + parsers + players + effects..."
- @@cat ${POPCORN_SRC} ${MODULES_SRC} ${PLUGINS_SRC} ${PARSERS_SRC} ${PLAYERS_SRC} $(EFFECTS_SRC) > $(POPCORN_COMPLETE_DIST)
- @@$(call add_license, $(POPCORN_COMPLETE_DIST))
- @@$(call add_version, $(POPCORN_COMPLETE_DIST))
-
-lint:
- @@echo "Checking Popcorn against JSLint..."
- @@$(call run_lint,popcorn.js)
-
-lint-core-tests:
- @@echo "Checking core unit tests against JSLint..."
- @@$(call run_lint,test/popcorn.unit.js)
-
-lint-modules:
- @@echo "Checking all modules against JSLint..."
- @@$(call run_lint,$(MODULES_SRC))
-
-lint-plugins:
- @@echo "Checking all plugins against JSLint..."
- @@$(call run_lint,$(PLUGINS_SRC))
-
-lint-parsers:
- @@echo "Checking all parsers against JSLint..."
- @@$(call run_lint,$(PARSERS_SRC))
-
-lint-players:
- @@echo "Checking all players against JSLint..."
- @@$(call run_lint,$(PLAYERS_SRC))
-
-lint-effects:
- @@echo "Checking all effects against JSLint..."
- @@$(call run_lint,$(EFFECTS_SRC))
-
-lint-modules-tests:
- @@echo "Checking modules unit tests against JSLint..."
- @@$(call run_lint,$(MODULES_UNIT))
-
-lint-plugin-tests:
- @@echo "Checking plugin unit tests against JSLint..."
- @@$(call run_lint,$(PLUGINS_UNIT))
-
-lint-parser-tests:
- @@echo "Checking parser unit tests against JSLint..."
- @@$(call run_lint,$(PARSERS_UNIT))
-
-lint-effects-tests:
- @@echo "Checking effectsr unit tests against JSLint..."
- @@$(call run_lint,$(EFFECTS_UNIT))
-
-lint-player-tests:
- @@echo "Checking player unit tests against JSLint..."
- @@$(call run_lint,$(PLAYERS_UNIT))
-
-lint-unit-tests: lint-modules-tests lint-plugin-tests lint-parser-tests lint-player-tests lint-effects-tests
- @@echo "completed"
-
-# Create a mirror copy of the tree in dist/ using popcorn-complete.js
-# in place of popcorn.js.
-TESTING_MIRROR := ${DIST_DIR}/testing-mirror
-
-# Prefer plugin code in popcorn-complete.js but don't overrwrite *unit.js files
-overwrite_js = @@for js in $$(find ${1} \( -name "*.js" -a \! -name "*.unit.js" \)) ; \
- do echo '/* Stub, see popcorn.js instead */' > $$js ; \
- done
-
-testing: complete
- @@echo "Building testing-mirror in ${TESTING_MIRROR}"
- @@mkdir -p ${TESTING_MIRROR}
- @@find ${PREFIX} \( -name '.git' -o -name 'dist' \) -prune -o -print | cpio -pd --quiet ${TESTING_MIRROR}
-# Remove unneeded files for testing, so it's clear this isn't the tree
- @@rm -fr ${TESTING_MIRROR}/AUTHORS ${TESTING_MIRROR}/LICENSE ${TESTING_MIRROR}/LICENSE_HEADER \
- ${TESTING_MIRROR}/Makefile ${TESTING_MIRROR}/readme.md
- @@touch "${TESTING_MIRROR}/THIS IS A TESTING MIRROR -- READ-ONLY"
- $(call overwrite_js, ${TESTING_MIRROR}/modules)
- $(call overwrite_js, ${TESTING_MIRROR}/plugins)
- $(call overwrite_js, ${TESTING_MIRROR}/players)
- $(call overwrite_js, ${TESTING_MIRROR}/parsers)
- $(call overwrite_js, ${TESTING_MIRROR}/effects)
- @@cp ${POPCORN_COMPLETE_DIST} ${TESTING_MIRROR}/popcorn.js
-
-clean:
- @@echo "Removing Distribution directory:" ${DIST_DIR}
- @@rm -rf ${DIST_DIR}
-
-setup:
- @@echo "Updating submodules..."
- @@git submodule update --init
View
@@ -0,0 +1 @@
+Popcorn.js development has been moved to http://github.com/mozilla/popcorn-js
Binary file not shown.
View
Binary file not shown.
View
@@ -1,43 +0,0 @@
-load("build/jslint.js");
-
-// All of the following are known issues that we think are 'ok'
-// (in contradiction with JSLint) more information here:
-// http://docs.jquery.com/JQuery_Core_Style_Guidelines
-var ok = {
- "Expected an identifier and instead saw 'undefined' (a reserved word).": true,
- "Use '===' to compare with 'null'.": true,
- "Use '!==' to compare with 'null'.": true,
- "Expected an assignment or function call and instead saw an expression.": true,
- "Expected a 'break' statement before 'case'.": true,
- "'e' is already defined.": true,
- "Don't make functions within a loop.": true,
- "['out'] is better written in dot notation.": true
-};
-
-function check(src)
-{
- JSLINT(src, { evil: true, forin: true, maxerr: 100 });
-
- var e = JSLINT.errors, found = 0, w;
- for ( var i = 0; e && i < e.length; i++ ) {
- w = e[i];
-
- if ( w && !ok[ w.reason ] ) {
- found++;
- print( "\n" + w.evidence + "\n" );
- print( " Problem at line " + w.line + " character " + w.character + ": " + w.reason );
- }
- }
-
- if ( found > 0 ) {
- print( "\n" + found + " Error(s) found." );
- } else {
- print( "JSLint check passed." );
- }
-}
-
-for each (var f in arguments)
-{
- print( "Linting "+ f );
- check(readFile(f));
-}
Oops, something went wrong.

0 comments on commit 2ba781a

Please sign in to comment.