forked from geops/ole
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
45 lines (42 loc) · 1.85 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
DISTRIBUTION_NAME = ole-1.0-beta1
# Minifies OLE using Closure Compiler
minified:
java -jar closurecompiler.jar \
--charset 'UTF-8' \
--jscomp_error=checkDebuggerStatement \
--jscomp_warning=checkVars \
--jscomp_warning=deprecated \
--jscomp_warning=duplicate \
--jscomp_warning=invalidCasts \
--externs client/lib/externs.js \
--js 'client/lib/Editor.js' \
--js 'client/lib/Editor/Control/CleanFeature.js' \
--js 'client/lib/Editor/Control/DragFeature.js' \
--js 'client/lib/Editor/Control/DeleteFeature.js' \
--js 'client/lib/Editor/Control/Dialog.js' \
--js 'client/lib/Editor/Control/DrawHole.js' \
--js 'client/lib/Editor/Control/DrawPolygon.js' \
--js 'client/lib/Editor/Control/DrawPath.js' \
--js 'client/lib/Editor/Control/DrawPoint.js' \
--js 'client/lib/Editor/Control/EditorPanel.js' \
--js 'client/lib/Editor/Control/ImportFeature.js' \
--js 'client/lib/Editor/Control/LayerSettings.js' \
--js 'client/lib/Editor/Control/MergeFeature.js' \
--js 'client/lib/Editor/Control/TransformFeature.js' \
--js 'client/lib/Editor/Control/FixedAngleDrawing.js' \
--js 'client/lib/Editor/Layer.js' \
--js 'client/lib/Editor/Layer/Snapping.js' \
--js 'client/lib/Editor/Control/SnappingSettings.js' \
--js 'client/lib/Editor/Control/SplitFeature.js' \
--js 'client/lib/Editor/Control/UndoRedo.js' \
--js 'client/lib/Editor/Control/CADTools.js' \
--js 'client/lib/Editor/Control/ParallelDrawing.js' \
--js 'client/lib/Editor/Lang/ca.js' \
--js 'client/lib/Editor/Lang/de.js' \
--js 'client/lib/Editor/Lang/en.js' \
--js_output_file client/ole.min.js
pack_distribution: minified
rm -f $(DISTRIBUTION_NAME).zip
zip --recurse-paths $(DISTRIBUTION_NAME).zip client/ documentation.md features.md license.txt Makefile README.md
rm -f $(DISTRIBUTION_NAME).tar.gz
tar -pczf ole-1.0-beta1.tar.gz client/ documentation.md features.md license.txt Makefile README.md