aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKate Murphy <hello@kate.io>2019-04-17 21:16:38 -0400
committerGitHub <noreply@github.com>2019-04-17 21:16:38 -0400
commit8a2b6287ee630bf9c1d0eff3f219565773b47651 (patch)
treefd5454040832b82d3b5362d0118c1c7a1cff37cb /Makefile
parentd388dc60854131a7b749be278ff24045869870de (diff)
parent3251b94332c291689cc76751a7be8629a6c7e64a (diff)
Merge pull request #437 from inkstitch/locale-releases
Separate locales into different releases
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 10 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index ed86a36c..f3f94b49 100644
--- a/Makefile
+++ b/Makefile
@@ -7,7 +7,6 @@ ARCH:=$(shell uname -m)
dist: distclean locales inx
bin/build-dist $(EXTENSIONS)
- cp inx/*.inx dist
cp -a images/examples dist/inkstitch
cp -a palettes dist/inkstitch
cp -a symbols dist/inkstitch
@@ -15,11 +14,16 @@ dist: distclean locales inx
cp -a icons dist/inkstitch/bin
cp -a locales dist/inkstitch/bin
cp -a print dist/inkstitch/bin
- if [ "$$BUILD" = "windows" ]; then \
- cd dist; zip -r ../inkstitch-$(VERSION)-win32.zip *; \
- else \
- cd dist; tar zcf ../inkstitch-$(VERSION)-$(OS)-$(ARCH).tar.gz *; \
- fi
+ for d in inx/*; do \
+ lang=$${d%.*}; \
+ lang=$${lang#*/}; \
+ cp $$d/*.inx dist; \
+ if [ "$$BUILD" = "windows" ]; then \
+ cd dist; zip -r ../inkstitch-$(VERSION)-win32-$$lang.zip *; cd ..; \
+ else \
+ cd dist; tar zcf ../inkstitch-$(VERSION)-$(OS)-$(ARCH)-$$lang.tar.gz *; cd ..; \
+ fi; \
+ done
distclean:
rm -rf build dist inx locales *.spec *.tar.gz *.zip