From 3101c2147524d485c505a0710d38ca19655a7016 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Sat, 4 Jul 2015 21:51:46 -0400 Subject: Add .dsc files to repository and specify distribution codename. --- Makefile | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index bd05920..cf9c4f0 100644 --- a/Makefile +++ b/Makefile @@ -64,10 +64,16 @@ DCH = test -f debian/changelog || \ dch --create --package cryptech-novena-$(1) --newversion '${CRYPTECH_PACKAGE_VERSION}' \ 'Version ${CRYPTECH_VERSION} of Cryptech $(2) for the Novena PVT-1 development board.' -# Where to find the reprepro repository. The "reprepro" target will -# initialize this if it doesn't exist. +# Reprepro repository location and release codename. The "reprepro" +# target will initialize this if it doesn't exist. +# +# Support for multiple distributions (codenames) not implemented yet. +# Not sure if there's any way to do it without generating separate +# packages for each codename (which would be rather tedious, +# particularly for the RTL package). REPOSITORY := $(abspath ${HOME}/repository) +CODENAME := wheezy all: init sw rtl @@ -85,12 +91,11 @@ rtl: cd rtl; debuild -S -uc -us cd rtl; debuild -b -uc -us -aarmhf - reprepro: ${REPOSITORY}/conf/distributions ${REPOSITORY}/conf/options - for i in *.changes; do reprepro -b ${REPOSITORY} include $$i; done + for f in *.changes; do reprepro -b ${REPOSITORY} --ignore=wrongdistribution include ${CODENAME} $$f; done + for f in *.dsc; do reprepro -b ${REPOSITORY} --ignore=wrongdistribution includedsc ${CODENAME} $$f; done ${REPOSITORY}/conf/distributions ${REPOSITORY}/conf/options: install -D reprepro-conf/$(notdir $@) ${REPOSITORY}/conf/$(notdir $@) - .PHONY: all init sw rtl reprepro -- cgit v1.2.3