From 234198936f20bc4066603bf53b490baa7e43cc38 Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Wed, 12 May 2004 05:14:26 +0000 Subject: [PATCH] linux-rpm.mk: Add auto-download of kernel tarball Download kernel package only if it does not yet exist in samba directory --- make/linux-rpm.mk | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/make/linux-rpm.mk b/make/linux-rpm.mk index 1a739f63..821a1203 100644 --- a/make/linux-rpm.mk +++ b/make/linux-rpm.mk @@ -22,11 +22,7 @@ TMP_INSTALL = $(KERNEL_BASE)-$(KERNEL_VERSION)-$(KERNEL_RELEASE) TAG = $(shell echo V_$(KERNEL_VERSION)_$(KERNEL_RELEASE) | sed 's/\./_/g') ifeq ($(wildcard RELEASE-$(KERNEL_VERSION)),) -<<<<<<< linux-rpm.mk -KERNEL_RELEASE := $(shell echo '\# $$Id$(KERNEL_VERSION),v 0.1$$' \ -======= -KERNEL_RELEASE := $(shell echo '\# $$Id$(KERNEL_VERSION),v 0.1$$' \ ->>>>>>> 1.1.2.2 +KERNEL_RELEASE := $(shell echo '\# \$$""Id:"$$"' \ > RELEASE-$(KERNEL_VERSION); \ cvs add RELEASE-$(KERNEL_VERSION); \ cvs commit -m "initial checkin" RELEASE-$(KERNEL_VERSION); \ @@ -69,11 +65,10 @@ export KERNEL_INSTALL_PREFIX all: rpm # file rules -$(KERNEL_TGZ): +$(KERNEL_PKG): + mkdir -p $(dirname $(KERNEL_PKG) ftp -a ftp.kernel.org:/pub/linux/kernel/v$(basename $(KERNEL_VERSION))/$(KERNEL_TGZ) - -$(KERNEL_PKG): $(KERNEL_TGZ) - install -m 664 $< $@ + install -m 664 $(KERNEL_TGZ) $@ config-$(KERNEL_VERSION): cp $(shell ls config-$(basename $(KERNEL_VERSION)).* | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]\)$$/\1.\2.0\3/' | sort -g | sed 's/\.0/./; $$ !d') $@