[vlc-commits] contrib: make package to make a binary tarball

Rémi Denis-Courmont git at videolan.org
Tue Jun 28 18:45:29 CEST 2011


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Jun 25 12:39:49 2011 +0300| [fe9ee7cd7540ae8f42d7724dce585eeab7ba7e08] | committer: Rémi Denis-Courmont

contrib: make package to make a binary tarball

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=fe9ee7cd7540ae8f42d7724dce585eeab7ba7e08
---

 contrib/src/main.mak |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/contrib/src/main.mak b/contrib/src/main.mak
index 66f4743..e3e3f8a 100644
--- a/contrib/src/main.mak
+++ b/contrib/src/main.mak
@@ -8,6 +8,7 @@ all: install
 ALL_PKGS := $(patsubst ../src/%/rules.mak,%,$(wildcard ../src/*/rules.mak))
 SRC := ../src
 TARBALLS := ../tarballs
+DATE := $(shell date +%Y%m%d)
 
 # Common download locations
 GNU := http://ftp.gnu.org/gnu
@@ -21,7 +22,8 @@ include config.mak
 #
 # Machine-dependent variables
 #
-PREFIX := $(abspath $(BIN)/$(HOST))
+PREFIX ?= ../hosts/$(HOST)
+PREFIX := $(abspath $(PREFIX))
 ifneq ($(HOST),$(BUILD))
 HAVE_CROSS_COMPILE = 1
 endif
@@ -161,4 +163,8 @@ distclean: clean
 	$(RM) config.mak
 	unlink Makefile
 
+package: install
+	(cd $(PREFIX)/.. && \
+	tar cvJ $(notdir $(PREFIX))/) > ../vlc-contrib-$(HOST)-$(DATE).tar.xz
+
 .DELETE_ON_ERROR:



More information about the vlc-commits mailing list