This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch master in repository pale-moon. commit 522935a29474b7f6e4eca461207aac8600ce315b Author: Mihai Moldovan <ionic@ionic.de> Date: Sat Jun 30 05:52:50 2018 +0200 debian/: add very stripped-down upstream.mk file. --- debian/changelog | 1 + debian/upstream.mk | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+) diff --git a/debian/changelog b/debian/changelog index 053be13..5ab7d6b 100644 --- a/debian/changelog +++ b/debian/changelog @@ -64,6 +64,7 @@ palemoon (27.9.2~repack-1-0x2go1) UNRELEASED; urgency=medium - Rename mozconfig to palemoon.mozconfig. - Add new palemoon-dev.install file. - Add noinstall file. Without preprocessing. + - Add very stripped-down upstream.mk file. -- Mihai Moldovan <ionic@ionic.de> Mon, 28 May 2018 03:44:10 +0200 diff --git a/debian/upstream.mk b/debian/upstream.mk new file mode 100644 index 0000000..ee0e36b --- /dev/null +++ b/debian/upstream.mk @@ -0,0 +1,49 @@ +# Generic rules to help download sources from archive.mozilla.org. +# Define the following variables before including this file: +# PRODUCT - product codename (e.g. browser) +# +# Modified for Palemoon. No need to define PRODUCT (yet). +# Fetching upstream source is not supported either. +# That's really a stripped-down version of the original. + +include /usr/share/dpkg/pkg-info.mk + +$(call lazy,UPSTREAM_VERSION,$$(shell cat browser/config/version.txt)) + +# Last version in debian/changelog +DEBIAN_SOURCE := $(DEB_SOURCE) +DEBIAN_VERSION := $(DEB_VERSION) +# Debian part of the above version (anything after the last dash) +DEBIAN_RELEASE := $(lastword $(subst -, ,$(DEBIAN_VERSION))) +# Upstream part of the debian/changelog version (anything before the last dash) +UPSTREAM_RELEASE := $(DEB_VERSION_UPSTREAM) +# Aurora builds have the build id in the upstream part of the debian/changelog version +export MOZ_BUILD_DATE := $(word 2,$(subst +, ,$(UPSTREAM_RELEASE))) +ifndef MOZ_BUILD_DATE +export MOZ_BUILD_DATE := $(shell TZ=UTC date -d "$(shell dpkg-parsechangelog -S Date)" +%Y%m%d%H%M%S) +endif +UPSTREAM_RELEASE := $(firstword $(subst +, ,$(UPSTREAM_RELEASE))) +# If the debian part of the version contains ~bpo or ~deb, it's a backport +DEBIAN_RELEASE_EXTRA := $(word 2,$(subst ~, ,$(DEBIAN_RELEASE))) +DIST = unknown +ifneq (,$(filter experimental,$(DEB_DISTRIBUTION))) +DIST = experimental +endif +ifneq (,$(filter testing% buster% unstable sid,$(DEB_DISTRIBUTION))) +DIST = buster +endif +ifneq (,$(filter bpo% deb%,$(DEBIAN_RELEASE_EXTRA))) +DEBIAN_TARGET := $(subst bpo,,$(subst deb,,$(DEBIAN_RELEASE_EXTRA))) +ifneq (,$(filter 7%,$(DEBIAN_TARGET))) +DIST = wheezy +endif +ifneq (,$(filter 8%,$(DEBIAN_TARGET))) +DIST = jessie +endif +ifneq (,$(filter 9%,$(DEBIAN_TARGET))) +DIST = stretch +endif +ifneq (,$(filter 10%,$(DEBIAN_TARGET))) +DIST = buster +endif +endif -- Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/pale-moon.git