Modify build to use local python script jsmin.py. This avoids us running into problems when shrinksafe is not working (as it wasn't around noon today) and users want to build their own Single File version of OpenLayers.

git-svn-id: http://svn.openlayers.org/trunk/openlayers@503 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2006-06-02 18:00:04 +00:00
parent a844ba9e80
commit 3c97bb529c
3 changed files with 487 additions and 1 deletions
+3 -1
View File
@@ -16,6 +16,7 @@ SRC_DIR=../lib
CMD_MERGE_JS=${TOOLS_DIR}/mergejs.py
CMD_SHRINKSAFE=${TOOLS_DIR}/shrinksafe.py
CMD_JSMIN=${TOOLS_DIR}/jsmin.py
LICENSE_HEADER_FILENAME=license.txt
@@ -29,7 +30,8 @@ ${CMD_MERGE_JS} -c ${CFG_FILENAME} ${TMP_OUTPUT_FILENAME} ${SRC_DIR}
echo
echo Shrinking and post-processing...
# (We also append the license header here.)
${CMD_SHRINKSAFE} ${TMP_OUTPUT_FILENAME} | cat ${LICENSE_HEADER_FILENAME} - > ${OUTPUT_FILENAME}
cat ${LICENSE_HEADER_FILENAME} > ${OUTPUT_FILENAME}
${CMD_JSMIN} <${TMP_OUTPUT_FILENAME} >> ${OUTPUT_FILENAME}
echo
echo Done.