Bug 1338099 - Fix the source packager to produce a non empty sourcestamp.txt file. r=ted

MozReview-Commit-ID: 1DsBkS1eSX8
This commit is contained in:
Alessio Placitelli 2017-02-21 06:43:00 -05:00
Родитель 2f0c246fb8
Коммит a2aba19e6b
1 изменённых файлов: 2 добавлений и 3 удалений

Просмотреть файл

@ -99,8 +99,7 @@ make-package: FORCE
GARBAGE += make-package
make-sourcestamp-file::
$(NSINSTALL) -D $(DIST)/$(PKG_PATH)
@echo '$(BUILDID)' > $(MOZ_SOURCESTAMP_FILE)
@awk '$$2 == "MOZ_BUILDID" {print $$3}' $(DEPTH)/buildid.h > $(MOZ_SOURCESTAMP_FILE)
ifdef MOZ_INCLUDE_SOURCE_INFO
@awk '$$2 == "MOZ_SOURCE_URL" {print $$3}' $(DEPTH)/source-repo.h >> $(MOZ_SOURCESTAMP_FILE)
endif
@ -160,7 +159,7 @@ source-package:
@echo 'Generate the sourcestamp file'
# Make sure to have repository information available and then generate the
# sourcestamp file.
$(MAKE) -C $(DEPTH) 'source-repo.h'
$(MAKE) -C $(DEPTH) 'source-repo.h' 'buildid.h'
$(MAKE) make-sourcestamp-file
@echo 'Packaging source tarball...'
# We want to include the sourcestamp file in the source tarball, so copy it