From 08dc612a5118384717fda41397da70b98ea508d8 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 15 Mar 2011 13:53:19 -0400 Subject: [PATCH] Bug #322 - Added credits to source code and version input to make file. Authors file added. --- AUTHORS | 9 +++++++++ Makefile | 9 ++++++--- popcorn.js | 8 ++++++++ 3 files changed, 23 insertions(+), 3 deletions(-) create mode 100644 AUTHORS diff --git a/AUTHORS b/AUTHORS new file mode 100644 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 diff --git a/Makefile b/Makefile index d603e9d..6648241 100644 --- 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..." diff --git a/popcorn.js b/popcorn.js index 24ba6c7..a20f813 100644 --- a/popcorn.js +++ b/popcorn.js @@ -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 -- 2.43.0