Stopped to generate releases in format .tar.gz to reduce duplication of release data. .zip is sufficient.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Sun, 25 Oct 2020 01:35:31 +0300
changeset 1259 e15d2e210840
parent 1258 c12bdfcd421c
child 1260 c756a022c822
Stopped to generate releases in format .tar.gz to reduce duplication of release data. .zip is sufficient.
Makefile
--- a/Makefile	Sun Oct 25 01:26:08 2020 +0300
+++ b/Makefile	Sun Oct 25 01:35:31 2020 +0300
@@ -181,8 +181,8 @@
 
 EL_FILES := $(wildcard misc/*.el)
 
-DISTREL_TARBALLS = dist/$(fullpkgname).tar.gz dist/$(fullpkgname).zip
-DISTSRC_TARBALLS = dist/$(fullpkgname)_src.tar.gz # dist/$(fullpkgname)_src.zip
+DISTREL_TARBALLS = dist/$(fullpkgname).zip # dist/$(fullpkgname).tar.gz
+DISTSRC_TARBALLS = dist/$(fullpkgname)_src.zip # dist/$(fullpkgname)_src.tar.gz
 
 ################################################################
 # Install/uninstall targets.
@@ -447,6 +447,11 @@
 	rm -rf $@
 	tar zcf $@ -C dist/ $(fullpkgname)_src
 
+dist/$(fullpkgname)_src.zip: $(DISTSRC_GADICT_FILES) $(DISTSRC_GAPHRASE_FILES) $(DISTSRC_GADIALOG_FILES) \
+  $(DISTSRC_PY_FILES) $(DISTSRC_RST_FILES) $(DISTSRC_TMPL_FILES) $(DISTSRC_BUILD_SCRIPTS) $(BUILD_SCRIPTS)
+	rm -rf $@
+	cd $(dir $@) && zip -r $(notdir $@) $(fullpkgname)_src
+
 $(DISTSRC_GADICT_FILES) $(DISTSRC_GAPHRASE_FILES) $(DISTSRC_GADIALOG_FILES): dist/$(fullpkgname)_src/%: % | dist/$(fullpkgname)_src/
 	cp $< $@