From patchwork Wed Feb 1 16:45:01 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thadeu Lima de Souza Cascardo X-Patchwork-Id: 722613 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) by ozlabs.org (Postfix) with ESMTP id 3vD8BX6gMtz9snk; Thu, 2 Feb 2017 03:45:24 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.76) (envelope-from ) id 1cYy25-0007JS-N4; Wed, 01 Feb 2017 16:45:21 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by huckleberry.canonical.com with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1cYy1v-0007H4-KI for kernel-team@lists.ubuntu.com; Wed, 01 Feb 2017 16:45:11 +0000 Received: from 1.general.cascardo.us.vpn ([10.172.70.58] helo=localhost.localdomain) by youngberry.canonical.com with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1cYy1u-0007ZF-Sk for kernel-team@lists.ubuntu.com; Wed, 01 Feb 2017 16:45:11 +0000 From: Thadeu Lima de Souza Cascardo To: kernel-team@lists.ubuntu.com Subject: [xenial linux-meta-aws 1/3] UBUNTU: simplify meta package packaging Date: Wed, 1 Feb 2017 14:45:01 -0200 Message-Id: <20170201164503.21589-2-cascardo@canonical.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170201164503.21589-1-cascardo@canonical.com> References: <20170201164503.21589-1-cascardo@canonical.com> X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.14 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: kernel-team-bounces@lists.ubuntu.com git rm Makefile README git mv meta-source/debian . rmdir meta-source BugLink: http://bugs.launchpad.net/bugs/1601954 Signed-off-by: Thadeu Lima de Souza Cascardo --- Makefile | 30 --------------------------- README | 18 ---------------- {meta-source/debian => debian}/changelog | 0 {meta-source/debian => debian}/compat | 0 {meta-source/debian => debian}/control.common | 0 {meta-source/debian => debian}/control.d/aws | 0 {meta-source/debian => debian}/copyright | 0 {meta-source/debian => debian}/rules | 0 {meta-source/debian => debian}/source/options | 0 9 files changed, 48 deletions(-) delete mode 100644 Makefile delete mode 100644 README rename {meta-source/debian => debian}/changelog (100%) rename {meta-source/debian => debian}/compat (100%) rename {meta-source/debian => debian}/control.common (100%) rename {meta-source/debian => debian}/control.d/aws (100%) rename {meta-source/debian => debian}/copyright (100%) rename {meta-source/debian => debian}/rules (100%) rename {meta-source/debian => debian}/source/options (100%) diff --git a/Makefile b/Makefile deleted file mode 100644 index fc0b59f..0000000 --- a/Makefile +++ /dev/null @@ -1,30 +0,0 @@ -LOG := meta-source/debian/changelog -META_NAME := $(shell head -n 1 $(LOG) | sed 's/\(.*\)[[:space:]]\+(.*).*/\1/') -META_VERSION := $(shell head -n 1 $(LOG) | sed 's/.*(\(.*\)).*/\1/') -META_SERIES := $(shell head -n 1 $(LOG) | sed 's/.*(.*)[[:space:]]\+\(.*\);.*/\1/' | sed 's/-.*//') -LAST_VERSION ?= $(shell rmadison -a source -s $(META_SERIES)-updates $(META_NAME) | cut -d '|' -f 2 | tr -d '[:blank:]') - -ifeq ($(LAST_VERSION),) -LAST_VERSION := $(shell rmadison -a source -s $(META_SERIES) $(META_NAME) | cut -d '|' -f 2 | tr -d '[:blank:]') -ifeq ($(LAST_VERSION),) -LAST_VERSION := $(META_VERSION) -endif -endif - -all: source - -source: clean - ln -s meta-source $(META_NAME)-$(META_VERSION) - cd $(META_NAME)-$(META_VERSION); \ - dpkg-buildpackage -S -sa -rfakeroot -I.git -I.gitignore -i'\.git.*' -v$(LAST_VERSION) - -binary: clean - ln -s meta-source $(META_NAME)-$(META_VERSION) - cd $(META_NAME)-$(META_VERSION); \ - debuild -b - -clean: - cd meta-source && fakeroot debian/rules clean - rm -f $(META_NAME)-$(META_VERSION) - rm -f *.dsc *.changes *.gz *.deb *.build *.upload - diff --git a/README b/README deleted file mode 100644 index bb6ccff..0000000 --- a/README +++ /dev/null @@ -1,18 +0,0 @@ -The toplevel makefile in this directory is used to create the upload source -for linux-meta. By convention the directory name is supposed to be the -name of the package with version number attached. -In order to fullfill that convention and prevent git from being useless -(since the renaming produces big diffs), a soft-link is created before -calling dpkk-buildpackage. - -The versioning scheme in debian/changelog must be k.k.k.a.m, where -k is the kernel version a is the ABI version and m is the version -of the linux-meta package. - -You can create an upload set by calling: - - make source - -Afterwards the temporary stuff can be removed by calling: - - make clean diff --git a/meta-source/debian/changelog b/debian/changelog similarity index 100% rename from meta-source/debian/changelog rename to debian/changelog diff --git a/meta-source/debian/compat b/debian/compat similarity index 100% rename from meta-source/debian/compat rename to debian/compat diff --git a/meta-source/debian/control.common b/debian/control.common similarity index 100% rename from meta-source/debian/control.common rename to debian/control.common diff --git a/meta-source/debian/control.d/aws b/debian/control.d/aws similarity index 100% rename from meta-source/debian/control.d/aws rename to debian/control.d/aws diff --git a/meta-source/debian/copyright b/debian/copyright similarity index 100% rename from meta-source/debian/copyright rename to debian/copyright diff --git a/meta-source/debian/rules b/debian/rules similarity index 100% rename from meta-source/debian/rules rename to debian/rules diff --git a/meta-source/debian/source/options b/debian/source/options similarity index 100% rename from meta-source/debian/source/options rename to debian/source/options