Skip to content

Commit

Permalink
Improved package creation to exclude archives.
Browse files Browse the repository at this point in the history
This fixes error with packages containing packages.
Also, increased version number.
  • Loading branch information
mefistotelis committed Sep 11, 2015
1 parent dc4cc21 commit 42cf8d5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ pkg-before:

pkg/%.tar.gz: pkg-before
$(ECHO) 'Creating package: $<'
$(TAR) zcf "$@" pkg
cd $(@D); \
$(TAR) --exclude=*.tar.gz --exclude=*.zip -zcf "$(@F)" .
$(ECHO) 'Finished creating: $<'
$(ECHO) ' '

Expand All @@ -134,7 +135,7 @@ tar.gz: pkg/peresec-$(subst .,_,$(VER_STRING))-$(PACKAGE_SUFFIX)-$(PKGOS).tar.gz
pkg/%.zip: pkg-before
$(ECHO) 'Creating package: $<'
cd $(@D); \
$(ZIP) -9 -r "$(@F)" .
$(ZIP) -x*.tar.gz -x*.zip -9 -r "$(@F)" .
$(ECHO) 'Finished creating: $<'
$(ECHO) ' '

Expand Down
6 changes: 3 additions & 3 deletions version.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
VER_MAJOR=1
VER_MINOR=0
VER_RELEASE=9
VER_BUILD=15
VER_MINOR=1
VER_RELEASE=0
VER_BUILD=16
PACKAGE_SUFFIX=devel

0 comments on commit 42cf8d5

Please sign in to comment.