]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
Bug #322 - Added credits to source code and version input to make file. Authors file...
authorunknown <Laura@.(none)>
Tue, 15 Mar 2011 17:53:19 +0000 (13:53 -0400)
committerunknown <Laura@.(none)>
Tue, 15 Mar 2011 17:53:19 +0000 (13:53 -0400)
AUTHORS [new file with mode: 0644]
Makefile
popcorn.js

diff --git a/AUTHORS b/AUTHORS
new file mode 100644 (file)
index 0000000..de913b5
--- /dev/null
+++ b/AUTHORS
@@ -0,0 +1,9 @@
+Anna Sobiepanek
+Rick Waldron
+Scott Downe
+David Humphrey
+Nick Cammarata
+Daniel Hodgin
+Daniel Brooks
+Brett Gaylor
+Boaz Sender
index d603e9dbd74a4d1892b87b5bbde9fcb7aee99df2..664824176bf46a65ea9b082a197a7e48fc3e61dd 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -5,6 +5,9 @@ DIST_DIR = ${PREFIX}/dist
 PLUGINS_DIR = ${PREFIX}/plugins
 PARSERS_DIR = ${PREFIX}/parsers
 
+#Version
+VERSION ?= $(error Specify a version for your release (e.g., VERSION=0.5))
+
 RHINO ?= java -jar ${BUILD_DIR}/js.jar
 
 CLOSURE_COMPILER = ${BUILD_DIR}/google-compiler-20100917.jar
@@ -54,8 +57,8 @@ popcorn: ${POPCORN_DIST}
 
 ${POPCORN_DIST}: ${POPCORN_SRC} | ${DIST_DIR}
        @@echo "Building" ${POPCORN_DIST}
-       @@cp ${POPCORN_SRC} ${POPCORN_DIST}
-
+       @@cat ${POPCORN_SRC} | sed -e 's/@VERSION/${VERSION}/' > ${POPCORN_DIST}
+       
 min: ${POPCORN_MIN} ${PLUGINS_MIN} ${PARSERS_MIN} ${POPCORN_COMPLETE_MIN}
 
 ${POPCORN_MIN}: ${POPCORN_DIST}
@@ -88,7 +91,7 @@ ${PARSERS_DIST}: ${PARSERS_SRC} ${DIST_DIR}
 
 complete: ${POPCORN_SRC} ${PLUGINS_SRC} ${DIST_DIR}
        @@echo "Building popcorn + plugins + parsers"
-       @@cat ${POPCORN_SRC} ${PLUGINS_SRC} ${PARSERS_SRC} > ${POPCORN_COMPLETE_DIST}
+       @@cat ${POPCORN_SRC} ${PLUGINS_SRC} ${PARSERS_SRC} | sed -e 's/@VERSION/${VERSION}/' > ${POPCORN_COMPLETE_DIST}   
 
 lint:
        @@echo "Checking Popcorn against JSLint..."
index 24ba6c76e59ba41ac39d951584a4adea0d79f091..a20f813f37549f21fcda8130bd0fe138fd3d96fc 100644 (file)
@@ -1,3 +1,11 @@
+/*
+ * popcorn.js version @VERSION
+ * http://popcornjs.org
+ *
+ * Copyright 2011, Mozilla Foundation
+ * Licensed under the MIT license
+ */
+
 (function(global, document) {
 
   //  Cache refs to speed up calls to native utils