2015-08-04 12:57:38 -05:00
|
|
|
# Version number of loleaflet, no need to be in sync with the loolwsd
|
|
|
|
# one, but do please follow the same even/odd convention for the third
|
|
|
|
# ("micro") part: Between releases odd, even for releases (no other
|
|
|
|
# changes inbetween).
|
2015-05-19 06:29:55 -05:00
|
|
|
|
2016-06-27 02:20:09 -05:00
|
|
|
VERSION=1.9.0
|
2015-05-19 06:29:55 -05:00
|
|
|
|
|
|
|
# Version number of the bundled 'draw' thing
|
|
|
|
DRAW_VERSION=0.2.4
|
|
|
|
|
|
|
|
all:
|
2015-12-04 04:57:11 -06:00
|
|
|
npm install
|
2016-05-23 09:38:06 -05:00
|
|
|
jake lint
|
2016-06-24 11:35:17 -05:00
|
|
|
jake build
|
2016-04-14 04:36:32 -05:00
|
|
|
rm -rf dist/plugins/draw-$(DRAW_VERSION) && mkdir -p dist/plugins/draw-$(DRAW_VERSION)
|
|
|
|
cd plugins/draw-$(DRAW_VERSION) && jake build && cp -ar dist ../../dist/plugins/draw-$(DRAW_VERSION)
|
2016-08-02 14:52:23 -05:00
|
|
|
npm run bundle
|
2015-05-19 06:29:55 -05:00
|
|
|
|
|
|
|
.PHONY: dist
|
2015-05-27 08:30:06 -05:00
|
|
|
dist: all
|
2015-05-20 08:00:47 -05:00
|
|
|
rm -rf loleaflet-$(VERSION)
|
2016-04-14 04:36:32 -05:00
|
|
|
mkdir loleaflet-$(VERSION)
|
2016-04-13 09:55:05 -05:00
|
|
|
cp -ar dist loleaflet-$(VERSION)
|
2016-04-28 07:48:49 -05:00
|
|
|
util/po2json.py --quiet po/*.po
|
2016-02-08 10:20:05 -06:00
|
|
|
mv po/*.json loleaflet-$(VERSION)/dist/l10n
|
2016-04-28 07:48:49 -05:00
|
|
|
util/po2json.py --quiet po/styles/*.po
|
2016-02-09 14:42:10 -06:00
|
|
|
mkdir -p loleaflet-$(VERSION)/dist/l10n/styles/
|
|
|
|
mv po/styles/*.json loleaflet-$(VERSION)/dist/l10n/styles/
|
2015-05-20 08:00:47 -05:00
|
|
|
tar cfz loleaflet-$(VERSION).tar.gz loleaflet-$(VERSION)
|
|
|
|
rm -rf loleaflet-$(VERSION)
|
2015-05-20 12:46:12 -05:00
|
|
|
|
2016-02-08 10:20:05 -06:00
|
|
|
pot:
|
2016-05-23 06:29:16 -05:00
|
|
|
xgettext --from-code=UTF-8 --keyword=_ --output=po/loleaflet-ui.pot \
|
2016-06-03 05:25:54 -05:00
|
|
|
evol.colorpicker.strings.js \
|
2016-05-24 01:53:07 -05:00
|
|
|
unocommands.js \
|
2016-05-23 15:32:56 -05:00
|
|
|
dist/errormessages.js \
|
2016-05-23 06:29:16 -05:00
|
|
|
dist/toolbar/toolbar.js \
|
2016-05-31 16:26:02 -05:00
|
|
|
src/admin/AdminSocketBase.js \
|
|
|
|
src/admin/AdminSocketOverview.js \
|
|
|
|
src/admin/AdminStrings.js \
|
|
|
|
src/admin/Util.js \
|
2016-06-21 09:44:20 -05:00
|
|
|
src/control/Control.ColumnHeader.js \
|
2016-05-23 15:49:11 -05:00
|
|
|
src/control/Control.Menubar.js \
|
2016-06-21 09:44:20 -05:00
|
|
|
src/control/Control.RowHeader.js \
|
2016-05-31 16:26:02 -05:00
|
|
|
src/control/Control.Tabs.js \
|
2016-06-09 08:26:08 -05:00
|
|
|
src/control/Toolbar.js \
|
2016-05-31 09:36:21 -05:00
|
|
|
src/core/Socket.js \
|
|
|
|
src/map/Map.js
|
2016-05-31 16:26:02 -05:00
|
|
|
|
2016-02-08 10:20:05 -06:00
|
|
|
html2po --pot --input=dist/loleaflet-help.html --output=po/loleaflet-help.pot
|
|
|
|
|
|
|
|
l10n: pot
|
2016-02-15 03:41:28 -06:00
|
|
|
for i in po/ui-*.po; do pot2po --input=po/loleaflet-ui.pot --template=$$i --output=$$i.new; mv $$i.new $$i;done
|
2016-02-08 10:20:05 -06:00
|
|
|
for i in po/help-*.po; do pot2po --input=po/loleaflet-help.pot --template=$$i --output=$$i.new; mv $$i.new $$i;done
|
2016-02-15 03:41:28 -06:00
|
|
|
rm po/loleaflet-ui.pot
|
2016-02-08 10:20:05 -06:00
|
|
|
rm po/loleaflet-help.pot
|
|
|
|
|
2015-09-11 02:41:23 -05:00
|
|
|
spec/data/load-test:
|
|
|
|
if [ ! -d spec/data/load_test ]; then \
|
|
|
|
mkdir -p spec/data/load_test; \
|
|
|
|
for i in $$(seq 1 125); \
|
|
|
|
do \
|
|
|
|
cp spec/data/eval.odt spec/data/load_test/eval$$i.odt; \
|
|
|
|
cp spec/data/eval.odp spec/data/load_test/eval$$i.odp; \
|
|
|
|
cp spec/data/eval.ods spec/data/load_test/eval$$i.ods; \
|
|
|
|
cp spec/data/eval.odg spec/data/load_test/eval$$i.odg; \
|
|
|
|
done; \
|
|
|
|
fi
|
|
|
|
|
|
|
|
load-test: spec/data/load-test
|
|
|
|
rm -rf load_test_out; \
|
|
|
|
mkdir load_test_out; \
|
|
|
|
for i in $$(seq 1 20); \
|
|
|
|
do \
|
2016-03-07 04:59:14 -06:00
|
|
|
node_modules/.bin/mocha spec/headlessLoadTest.js > load_test_out/$$i.out 2>&1 & \
|
2015-09-11 02:41:23 -05:00
|
|
|
done;
|