Trim out the module wrappers during the build process. Follow-up to #7011.
[jquery.git] / Makefile
index ade6319..d11d4e1 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -56,6 +56,8 @@ ${JQ}: selector ${MODULES}
        @@mkdir -p ${DIST_DIR}
 
        @@cat ${MODULES} | \
+               sed 's/.function..jQuery...{//' | \
+               sed 's/}...jQuery..;//' | \
                sed 's/Date:./&'"${DATE}"'/' | \
                ${VER} > ${JQ};
 
@@ -80,7 +82,7 @@ clean:
        @@rm -rf ${DIST_DIR}
 
        @@echo "Removing built copy of Sizzle"
-       @@rm src/selector.js
+       @@rm -f src/selector.js
 
        @@echo "Removing cloned directories"
        @@rm -rf test/qunit src/sizzle