Add simplified build script based on the one from the old repository. To build a Single File Library release of OL run ./build.sh in the the build dir.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@395 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Executable
+35
@@ -0,0 +1,35 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
#
|
||||||
|
# Script to build compressed single file version of OpenLayers library
|
||||||
|
#
|
||||||
|
|
||||||
|
OUTPUT_FILENAME=OpenLayers.js
|
||||||
|
TMP_OUTPUT_FILENAME=tmp.${OUTPUT_FILENAME}
|
||||||
|
|
||||||
|
TOOLS_DIR=../tools
|
||||||
|
|
||||||
|
CFG_FILENAME=library.cfg
|
||||||
|
|
||||||
|
SRC_DIR=../lib
|
||||||
|
|
||||||
|
CMD_MERGE_JS=${TOOLS_DIR}/mergejs.py
|
||||||
|
|
||||||
|
CMD_SHRINKSAFE=${TOOLS_DIR}/shrinksafe.py
|
||||||
|
|
||||||
|
LICENSE_HEADER_FILENAME=license.txt
|
||||||
|
|
||||||
|
|
||||||
|
## Generate "fat" single file library version
|
||||||
|
${CMD_MERGE_JS} -c ${CFG_FILENAME} ${TMP_OUTPUT_FILENAME} ${SRC_DIR}
|
||||||
|
|
||||||
|
|
||||||
|
## Compress ("shrink") the single file library version
|
||||||
|
|
||||||
|
echo
|
||||||
|
echo Shrinking and post-processing...
|
||||||
|
# (We also append the license header here.)
|
||||||
|
${CMD_SHRINKSAFE} ${TMP_OUTPUT_FILENAME} | cat ${LICENSE_HEADER_FILENAME} - > ${OUTPUT_FILENAME}
|
||||||
|
|
||||||
|
echo
|
||||||
|
echo Done.
|
||||||
Reference in New Issue
Block a user