mirror of
https://codeberg.org/librewolf/source.git
synced 2024-12-22 05:33:03 -05:00
bugfixes
This commit is contained in:
parent
9423e9db41
commit
b0676ebd2c
4 changed files with 42 additions and 9 deletions
15
Makefile
15
Makefile
|
@ -1,10 +1,9 @@
|
|||
.PHONY : all help clean veryclean librewolf-patches check librewolf
|
||||
|
||||
|
||||
version:=$(shell cat ./version)
|
||||
release:=$(shell cat ./release)
|
||||
|
||||
include upstream.mk
|
||||
include assets/upstream.nightly.mk
|
||||
|
||||
## simplistic archive format selection
|
||||
|
||||
|
@ -17,7 +16,6 @@ ext=.tar.gz
|
|||
|
||||
|
||||
|
||||
|
||||
help : README.md
|
||||
|
||||
@echo "use: make [all] [check] [clean] [veryclean]"
|
||||
|
@ -42,15 +40,14 @@ all : librewolf-$(version)-$(release).source$(ext) README.md
|
|||
clean :
|
||||
rm -rf *~ firefox-$(version) librewolf-$(version) librewolf-$(version)-$(release).source$(ext)
|
||||
|
||||
|
||||
veryclean : clean
|
||||
rm -f $(upstream_filename)
|
||||
make clean_upstream_file
|
||||
rm -rf librewolf-$(version)
|
||||
|
||||
librewolf-$(version)-$(release).source$(ext) : $(upstream_filename) ./version ./release scripts/librewolf-patches.py assets/mozconfig assets/patches.txt
|
||||
rm -rf $(upstream_dirname) librewolf-$(version)
|
||||
tar xf $(upstream_filename)
|
||||
mv $(upstream_dirname) librewolf-$(version)
|
||||
librewolf-$(version)-$(release).source$(ext) : $(upstream_filename) ./version ./release scripts/librewolf-patches.py assets/mozconfig assets/patches.txt README.md
|
||||
make clean_upstream_dir
|
||||
rm -rf librewolf-$(version)
|
||||
make create_lw_from_upstream_dir
|
||||
python3 scripts/librewolf-patches.py $(version)
|
||||
rm -f librewolf-$(version)-$(release).source$(ext)
|
||||
$(archive_create) librewolf-$(version)-$(release).source$(ext) librewolf-$(version)
|
||||
|
|
14
assets/upstream.nighly.mk
Normal file
14
assets/upstream.nighly.mk
Normal file
|
@ -0,0 +1,14 @@
|
|||
## handle different upstreams, like developer,nightly, or distro specific upstream cases
|
||||
upstream_filename=bootstrap.py
|
||||
upstream_dirname=mozilla-nightly
|
||||
$(upstream_filename) :
|
||||
wget -q https://hg.mozilla.org/mozilla-central/raw-file/default/python/mozboot/bin/bootstrap.py
|
||||
##
|
||||
clean_upstream_file :
|
||||
rm -f $(upstream_filename)
|
||||
clean_upstream_dir :
|
||||
rm -rf $(upstream_dirname)
|
||||
create_lw_from_upstream_dir :
|
||||
python3 bootstrap.py --no-interactive --application-choice=browser
|
||||
mv $(upstream_dirname) librewolf-$(version)
|
||||
|
14
assets/upstream.std.mk
Normal file
14
assets/upstream.std.mk
Normal file
|
@ -0,0 +1,14 @@
|
|||
## handle different upstreams, like developer,nightly, or distro specific upstream cases
|
||||
upstream_filename=firefox-$(version).source.tar.xz
|
||||
upstream_dirname=firefox-$(version)
|
||||
$(upstream_filename) :
|
||||
wget -q https://archive.mozilla.org/pub/firefox/releases/$(version)/source/firefox-$(version).source.tar.xz
|
||||
##
|
||||
clean_upstream_file :
|
||||
rm -f $(upstream_filename)
|
||||
clean_upstream_dir :
|
||||
rm -rf $(upstream_dirname)
|
||||
create_lw_from_upstream_dir :
|
||||
tar xf $(upstream_filename)
|
||||
mv $(upstream_dirname) librewolf-$(version)
|
||||
|
|
@ -4,3 +4,11 @@ upstream_dirname=firefox-$(version)
|
|||
$(upstream_filename) :
|
||||
wget -q https://archive.mozilla.org/pub/firefox/releases/$(version)/source/firefox-$(version).source.tar.xz
|
||||
##
|
||||
clean_upstream_file :
|
||||
rm -f $(upstream_filename)
|
||||
clean_upstream_dir :
|
||||
rm -rf $(upstream_dirname)
|
||||
create_lw_from_upstream_dir :
|
||||
tar xf $(upstream_filename)
|
||||
mv $(upstream_dirname) librewolf-$(version)
|
||||
|
||||
|
|
Loading…
Reference in a new issue