mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-31 19:10:36 +00:00
Bug 732976 - SingleSourceFactory should generate checksums file. r=ted
This commit is contained in:
parent
a02e3e035e
commit
66b2102084
@ -98,6 +98,12 @@ source-package::
|
||||
upload::
|
||||
@$(MAKE) -C browser/installer upload
|
||||
|
||||
source-upload::
|
||||
@$(MAKE) -C browser/installer source-upload
|
||||
|
||||
hg-bundle::
|
||||
@$(MAKE) -C browser/installer hg-bundle
|
||||
|
||||
l10n-check::
|
||||
@$(MAKE) -C browser/locales l10n-check
|
||||
|
||||
|
@ -103,6 +103,7 @@ PKG_LANGPACK_BASENAME = $(MOZ_PKG_APPNAME)-$(MOZ_PKG_VERSION).$(AB_CD).langpack
|
||||
PKG_LANGPACK_PATH = $(MOZ_PKG_PLATFORM)/xpi/
|
||||
LANGPACK = $(PKG_LANGPACK_PATH)$(PKG_LANGPACK_BASENAME).xpi
|
||||
PKG_SRCPACK_BASENAME = $(MOZ_PKG_APPNAME)-$(MOZ_PKG_VERSION).source
|
||||
PKG_BUNDLE_BASENAME = $(MOZ_PKG_APPNAME)-$(MOZ_PKG_VERSION)
|
||||
PKG_SRCPACK_PATH =
|
||||
|
||||
else # "pretty" release package names
|
||||
@ -147,6 +148,7 @@ PKG_LANGPACK_BASENAME = $(AB_CD)
|
||||
PKG_LANGPACK_PATH = $(MOZ_PKG_PLATFORM)/xpi/
|
||||
LANGPACK = $(PKG_LANGPACK_PATH)$(PKG_LANGPACK_BASENAME).xpi
|
||||
PKG_SRCPACK_BASENAME = $(MOZ_PKG_APPNAME_LC)-$(MOZ_PKG_VERSION).source
|
||||
PKG_BUNDLE_BASENAME = $(MOZ_PKG_APPNAME_LC)-$(MOZ_PKG_VERSION)
|
||||
PKG_SRCPACK_PATH = source/
|
||||
|
||||
endif # MOZ_PKG_PRETTYNAMES
|
||||
|
@ -1016,9 +1016,42 @@ endif
|
||||
CREATE_SOURCE_TAR = $(TAR) -c --owner=0 --group=0 --numeric-owner \
|
||||
--mode="go-w" $(SRC_TAR_EXCLUDE_PATHS) -f
|
||||
|
||||
SOURCE_TAR = $(DIST)/$(PKG_SRCPACK_PATH)$(PKG_SRCPACK_BASENAME).tar.bz2
|
||||
HG_BUNDLE_FILE = $(DIST)/$(PKG_SRCPACK_PATH)$(PKG_BUNDLE_BASENAME).bundle
|
||||
SOURCE_CHECKSUM_FILE = $(DIST)/$(PKG_SRCPACK_PATH)$(PKG_SRCPACK_BASENAME).checksums
|
||||
SOURCE_UPLOAD_FILES = $(SOURCE_TAR)
|
||||
|
||||
HG ?= hg
|
||||
CREATE_HG_BUNDLE_CMD = $(HG) -v -R $(topsrcdir) bundle --base null
|
||||
ifdef HG_BUNDLE_REVISION
|
||||
CREATE_HG_BUNDLE_CMD += -r $(HG_BUNDLE_REVISION)
|
||||
endif
|
||||
CREATE_HG_BUNDLE_CMD += $(HG_BUNDLE_FILE)
|
||||
ifdef UPLOAD_HG_BUNDLE
|
||||
SOURCE_UPLOAD_FILES += $(HG_BUNDLE_FILE)
|
||||
endif
|
||||
|
||||
ifdef MOZ_SIGN_CMD
|
||||
SIGN_SOURCE_TAR_CMD = $(MOZ_SIGN_CMD) -f gpg $(SOURCE_TAR)
|
||||
SOURCE_UPLOAD_FILES += $(SOURCE_TAR).asc
|
||||
SIGN_HG_BUNDLE_CMD = $(MOZ_SIGN_CMD) -f gpg $(HG_BUNDLE_FILE)
|
||||
ifdef UPLOAD_HG_BUNDLE
|
||||
SOURCE_UPLOAD_FILES += $(HG_BUNDLE_FILE).asc
|
||||
endif
|
||||
endif
|
||||
|
||||
# source-package creates a source tarball from the files in MOZ_PKG_SRCDIR,
|
||||
# which is either set to a clean checkout or defaults to $topsrcdir
|
||||
source-package:
|
||||
@echo "Packaging source tarball..."
|
||||
mkdir -p $(DIST)/$(PKG_SRCPACK_PATH)
|
||||
(cd $(MOZ_PKG_SRCDIR) && $(CREATE_SOURCE_TAR) - $(DIR_TO_BE_PACKAGED)) | bzip2 -vf > $(DIST)/$(PKG_SRCPACK_PATH)$(PKG_SRCPACK_BASENAME).tar.bz2
|
||||
$(MKDIR) -p $(DIST)/$(PKG_SRCPACK_PATH)
|
||||
(cd $(MOZ_PKG_SRCDIR) && $(CREATE_SOURCE_TAR) - $(DIR_TO_BE_PACKAGED)) | bzip2 -vf > $(SOURCE_TAR)
|
||||
$(SIGN_SOURCE_TAR_CMD)
|
||||
|
||||
hg-bundle:
|
||||
$(MKDIR) -p $(DIST)/$(PKG_SRCPACK_PATH)
|
||||
$(CREATE_HG_BUNDLE_CMD)
|
||||
$(SIGN_HG_BUNDLE_CMD)
|
||||
|
||||
upload-source:
|
||||
$(MAKE) upload UPLOAD_FILES="$(SOURCE_UPLOAD_FILES)" CHECKSUM_FILE="$(SOURCE_CHECKSUM_FILE)"
|
||||
|
@ -73,6 +73,12 @@ source-package::
|
||||
upload::
|
||||
@$(MAKE) -C xulrunner/installer upload
|
||||
|
||||
source-upload::
|
||||
@$(MAKE) -C xulrunner/installer source-upload
|
||||
|
||||
hg-bundle::
|
||||
@$(MAKE) -C xulrunner/installer hg-bundle
|
||||
|
||||
ifeq ($(OS_TARGET),Linux)
|
||||
deb: package
|
||||
@$(MAKE) -C xulrunner/installer deb
|
||||
|
Loading…
x
Reference in New Issue
Block a user