Skip to content

Commit

Permalink
Fix missing libuev in 'make dist' from 1.4 and 1.5 and bump version t…
Browse files Browse the repository at this point in the history
…o 1.6

Since the introduction of libuev the 'make dist' target has failed to
include the libuev subdirectory.  This is due to the 'git archive'
command unfortunately not supporting git submodules.

This commit changes 'make dist' to use Kentzo's git-archive-all from
https://github.com/Kentzo/git-archive-all

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
  • Loading branch information
troglobit committed Sep 12, 2014
1 parent 111a8ee commit 9ced9e1
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# used to remove files from deployment using `git archive`
# git files
.gitattributes export-ignore
.gitignore export-ignore
.travis.yml export-ignore
22 changes: 16 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,14 @@
.PHONY: all install uninstall clean distclean dist

#VERSION ?= $(shell git tag -l | tail -1)
VERSION ?= 1.5
VERSION ?= 1.6
BUGADDR = https://github.com/troglobit/uftpd/issues
NAME = uftpd
PKG = $(NAME)-$(VERSION)
DEV = $(NAME)-dev
ARCHIVE = $(PKG).tar.xz
ARCHTOOL = `which git-archive-all`
ARCHIVE = $(PKG).tar
ARCHIVEZ = ../$(ARCHIVE).xz
EXEC = $(NAME)
MANUAL = $(NAME).8
DISTFILES = LICENSE README
Expand Down Expand Up @@ -108,16 +110,24 @@ package:
dpkg-buildpackage -b -uc -tc

dist:
@if [ x"$(ARCHTOOL)" = x"" ]; then \
echo "Missing git-archive-all from https://github.com/Kentzo/git-archive-all"; \
exit 1; \
fi
@if [ -e $(ARCHIVEZ) ]; then \
echo "Distribution already exists."; \
exit 1; \
fi
@echo "Building xz tarball of $(PKG) in parent dir..."
git archive --format=tar --prefix=$(PKG)/ $(VERSION) | xz >../$(ARCHIVE)
@(cd ..; md5sum $(ARCHIVE) | tee $(ARCHIVE).md5)
@$(ARCHTOOL) ../$(ARCHIVE)
@xz ../$(ARCHIVE)
@md5sum $(ARCHIVEZ) | tee $(ARCHIVEZ).md5

dev: distclean
@echo "Building unstable xz $(DEV) in parent dir..."
-@$(RM) -f ../$(DEV).tar.xz*
@(dir=`mktemp -d`; mkdir $$dir/$(DEV); cp -a . $$dir/$(DEV); \
cd $$dir; tar --exclude=.git --exclude=contrib \
-c -J -f $(DEV).tar.xz $(DEV); \
cd $$dir; tar --exclude=.git -c -J -f $(DEV).tar.xz $(DEV);\
cd - >/dev/null; mv $$dir/$(DEV).tar.xz ../; cd ..; \
rm -rf $$dir; md5sum $(DEV).tar.xz | tee $(DEV).tar.xz.md5)

Expand Down
7 changes: 7 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
uftpd (1.6-1) unstable; urgency=low

* Repack of 1.5 due to missing content in new libuev subdirectory in
distributed tarball.

-- Joachim Nilsson <troglobit@gmail.com> Fri, 12 Sep 2014 15:45:08 +0200

uftpd (1.5-1) unstable; urgency=low

* New upstream release, minor bug fixes only, found by Coverity Scan.
Expand Down

0 comments on commit 9ced9e1

Please sign in to comment.