omit the line sourceMappingURL=jquery.*map in mkws-complete.js
authorWolfram Schneider <wosch@indexdata.dk>
Thu, 22 Aug 2013 09:45:14 +0000 (09:45 +0000)
committerWolfram Schneider <wosch@indexdata.dk>
Thu, 22 Aug 2013 09:45:14 +0000 (09:45 +0000)
The commented out line sourceMappingURL will force modern
browsers (FF23, Google Chrome) to fetch debug informations
which does not exists on our side (how evil is that?)

For more informations, see
http://bugs.jquery.com/ticket/13274
http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/

tools/htdocs/Makefile

index b0cfa24..bf8af85 100644 (file)
@@ -45,7 +45,7 @@ pz2api-git-checkout:
 mkws-js ${MKWS_JS}: pz2api-check ${PZ2API_JS} mkws.js
        ( echo "/* created at: $$(date)"; \
          echo "   mkws.js GIT id: $$(git log mkws.js | head -n 1 | perl -npe 's,\S+\s+,,') */"; \
-         curl -sSf ${JQUERY_URL}; \
+         curl -sSf ${JQUERY_URL} | perl -npe 's,sourceMappingURL=jquery.*map,,'; \
          cat ../../../libjs-pz2/pz2api.1.js mkws.js ) > ${MKWS_JS}.new 
        mv -f ${MKWS_JS}.new ${MKWS_JS}