Commit eff5b0b6 authored by Richard Bayerle's avatar Richard Bayerle
Browse files

Make source tarball contain a single directory on the top level

Version to use in directory and file name can be specified in env
This fixes #94
parent 7d4d4011
...@@ -69,9 +69,6 @@ BDIR=./build ...@@ -69,9 +69,6 @@ BDIR=./build
SDIR=./src SDIR=./src
HDIR=./headers HDIR=./headers
TARBALL_DIR_NAME=tarball
TARBALL_FILE_NAME=lurch-0.0.0-src.tar.gz
LOMEMO_DIR=$(LDIR)/libomemo LOMEMO_DIR=$(LDIR)/libomemo
LOMEMO_SRC=$(LOMEMO_DIR)/src LOMEMO_SRC=$(LOMEMO_DIR)/src
LOMEMO_BUILD=$(LOMEMO_DIR)/build LOMEMO_BUILD=$(LOMEMO_DIR)/build
...@@ -128,17 +125,21 @@ install-home: $(BDIR)/lurch.so ...@@ -128,17 +125,21 @@ install-home: $(BDIR)/lurch.so
$(INSTALL_DIR) "$(PURPLE_HOME_PLUGIN_DIR)" $(INSTALL_DIR) "$(PURPLE_HOME_PLUGIN_DIR)"
$(INSTALL_LIB) "$(BDIR)/lurch.so" "$(PURPLE_HOME_PLUGIN_DIR)/lurch.so" $(INSTALL_LIB) "$(BDIR)/lurch.so" "$(PURPLE_HOME_PLUGIN_DIR)/lurch.so"
tarball: clean-all
$(MAKE) -C "$(AXC_DIR)" clean-all LURCH_VERSION ?= 0.0.0
$(MKDIR) tarball TARBALL_DIR_NAME=lurch-$(LURCH_VERSION)
-cp -r . tarball/ TARBALL_FILE_NAME=$(TARBALL_DIR_NAME)-src.tar.gz
#rsync -av --progress . tarball/ --exclude tarball/
-find tarball/ -name "*.git*" -exec rm -rf "{}" \; tarball: | clean-all $(BDIR)
cd $(TARBALL_DIR_NAME)/ && tar czf ../$(TARBALL_FILE_NAME) * --exclude $(TARBALL_DIR_NAME) && cd .. && mv $(TARBALL_FILE_NAME) $(TARBALL_DIR_NAME)/ $(MKDIR) $(TARBALL_DIR_NAME)
rsync -av --progress . $(TARBALL_DIR_NAME)/ --exclude $(TARBALL_DIR_NAME)/ --exclude-from=.gitignore
-find $(TARBALL_DIR_NAME)/ -name "*.git*" -exec rm -rf "{}" \;
tar czf $(TARBALL_FILE_NAME) $(TARBALL_DIR_NAME)/
mv $(TARBALL_FILE_NAME) $(TARBALL_DIR_NAME)/
mv $(TARBALL_DIR_NAME) $(BDIR)/
clean: clean:
$(RM_RF) "$(BDIR)" $(RM_RF) "$(BDIR)"
$(RM_RF) "./$(TARBALL_DIR_NAME)"
clean-all: clean clean-all: clean
$(MAKE) -C "$(LOMEMO_DIR)" clean $(MAKE) -C "$(LOMEMO_DIR)" clean
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment