Trim out the module wrappers during the build process. Follow-up to #7011.
authorjeresig <jeresig@gmail.com>
Thu, 9 Sep 2010 14:34:21 +0000 (10:34 -0400)
committerjeresig <jeresig@gmail.com>
Thu, 9 Sep 2010 14:34:21 +0000 (10:34 -0400)
Makefile

index 0fff724..d11d4e1 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -56,6 +56,8 @@ ${JQ}: selector ${MODULES}
        @@mkdir -p ${DIST_DIR}
 
        @@cat ${MODULES} | \
        @@mkdir -p ${DIST_DIR}
 
        @@cat ${MODULES} | \
+               sed 's/.function..jQuery...{//' | \
+               sed 's/}...jQuery..;//' | \
                sed 's/Date:./&'"${DATE}"'/' | \
                ${VER} > ${JQ};
 
                sed 's/Date:./&'"${DATE}"'/' | \
                ${VER} > ${JQ};