0
Fork 0
mirror of https://codeberg.org/librewolf/source.git synced 2024-12-22 05:33:03 -05:00
This commit is contained in:
Bert van der Weerd 2022-01-08 22:07:06 +01:00
parent 347dca2170
commit d73728ee15
No known key found for this signature in database
GPG key ID: 4CFABB96ADE0F5B1
3 changed files with 15 additions and 14 deletions

View file

@ -3,8 +3,6 @@
version:=$(shell cat ./version) version:=$(shell cat ./version)
release:=$(shell cat ./release) release:=$(shell cat ./release)
include assets/upstream.nightly.mk
## simplistic archive format selection ## simplistic archive format selection
#archive_create=tar cfJ #archive_create=tar cfJ
@ -15,7 +13,6 @@ ext=.tar.gz
#ext=.zip #ext=.zip
help : README.md help : README.md
@echo "use: make [all] [check] [clean] [veryclean]" @echo "use: make [all] [check] [clean] [veryclean]"
@ -34,6 +31,10 @@ check : README.md
@echo "Current release:" $$(cat ./release) @echo "Current release:" $$(cat ./release)
@make --no-print-directory -q README.md @make --no-print-directory -q README.md
include upstream.mk
all : librewolf-$(version)-$(release).source$(ext) README.md all : librewolf-$(version)-$(release).source$(ext) README.md

View file

@ -1,14 +1,14 @@
## handle different upstreams, like developer,nightly, or distro specific upstream cases ## handle different upstreams, like developer,nightly, or distro specific upstream cases
upstream_filename=firefox-$(version).source.tar.xz upstream_filename=bootstrap.py
upstream_dirname=firefox-$(version) upstream_dirname=mozilla-nightly
$(upstream_filename) : $(upstream_filename) :
wget -q https://archive.mozilla.org/pub/firefox/releases/$(version)/source/firefox-$(version).source.tar.xz wget -q https://hg.mozilla.org/mozilla-central/raw-file/default/python/mozboot/bin/bootstrap.py
## ##
clean_upstream_file : clean_upstream_file :
rm -f $(upstream_filename) rm -f $(upstream_filename)
clean_upstream_dir : clean_upstream_dir :
rm -rf $(upstream_dirname) rm -rf $(upstream_dirname)
create_lw_from_upstream_dir : create_lw_from_upstream_dir :
tar xf $(upstream_filename) python3 bootstrap.py --no-interactive --application-choice=browser
mv $(upstream_dirname) librewolf-$(version) mv $(upstream_dirname) librewolf-$(version)

View file

@ -1,14 +1,14 @@
## handle different upstreams, like developer,nightly, or distro specific upstream cases ## handle different upstreams, like developer,nightly, or distro specific upstream cases
upstream_filename=bootstrap.py upstream_filename=mozilla-unified
upstream_dirname=mozilla-nightly upstream_dirname=mozilla-unified
$(upstream_filename) : $(upstream_filename) :
wget -q https://hg.mozilla.org/mozilla-central/raw-file/default/python/mozboot/bin/bootstrap.py hg clone https://hg.mozilla.org/mozilla-unified
(cd mozilla-unified && hg update)
## ##
clean_upstream_file : clean_upstream_file :
rm -f $(upstream_filename)
clean_upstream_dir : clean_upstream_dir :
rm -rf $(upstream_dirname)
create_lw_from_upstream_dir : create_lw_from_upstream_dir :
python3 bootstrap.py --no-interactive --application-choice=browser (cd mozilla-unified && hg pull)
mv $(upstream_dirname) librewolf-$(version) (cd mozilla-unified && hg update)
cp -r $(upstream_dirname) librewolf-$(version)