]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
Add license to dist/popcorn-complete.js
authorDavid Humphrey <david.humphrey@senecac.on.ca>
Thu, 21 Apr 2011 22:20:38 +0000 (18:20 -0400)
committerDavid Humphrey <david.humphrey@senecac.on.ca>
Thu, 21 Apr 2011 22:20:38 +0000 (18:20 -0400)
Makefile

index e8a2c9c0133e9df976aa9216cb39e2431b2dba59..611374e137db054375036962e9677ffa67da9c3e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -116,8 +116,10 @@ ${PLAYERS_DIST}: ${PLAYERS_SRC} ${DIST_DIR}
        @@cat ${PLAYERS_SRC} > ${PLAYERS_DIST}
 
 complete: ${POPCORN_SRC} ${PARSERS_SRC} ${PLUGINS_SRC} ${PLAYERS_SRC} ${DIST_DIR}
-       @@echo "Building popcorn + plugins + parsers + players"
-       @@cat ${POPCORN_SRC} ${PLUGINS_SRC} ${PARSERS_SRC} ${PLAYERS_SRC} | sed -e 's/@VERSION/${VERSION}/' > ${POPCORN_COMPLETE_DIST}
+       @@echo "Building popcorn + plugins + parsers + players..."
+       @@cat ${POPCORN_SRC} ${PLUGINS_SRC} ${PARSERS_SRC} ${PLAYERS_SRC} > ${POPCORN_COMPLETE_DIST}.tmp
+       @@$(call add_license, ${POPCORN_COMPLETE_DIST}.tmp, ${POPCORN_COMPLETE_DIST})
+       @@rm ${POPCORN_COMPLETE_DIST}.tmp
 
 lint:
        @@echo "Checking Popcorn against JSLint..."