mirror of
https://codeberg.org/librewolf/source.git
synced 2025-04-01 16:01:27 -05:00
Moved bootstap.py into lw-assets folder for convinience.
This commit is contained in:
parent
f688a391c0
commit
8d11d211eb
2 changed files with 10 additions and 36 deletions
40
Makefile
40
Makefile
|
@ -1,5 +1,6 @@
|
|||
.PHONY : all help clean veryclean fetch extract librewolf-patches check init
|
||||
|
||||
|
||||
version_file=./version
|
||||
version:=$(shell cat $(version_file))
|
||||
|
||||
|
@ -13,7 +14,6 @@ ext=.tar.xz
|
|||
#ext=.zip
|
||||
|
||||
|
||||
|
||||
help :
|
||||
@echo "use: make [all] [check] [clean] [veryclean] [init]"
|
||||
@echo ""
|
||||
|
@ -26,63 +26,33 @@ help :
|
|||
@echo " init - set up local build environment, takes a long time."
|
||||
|
||||
|
||||
|
||||
|
||||
#
|
||||
# Keeping ./version up to date.
|
||||
#
|
||||
|
||||
check :
|
||||
@python3 assets/update-version.py
|
||||
|
||||
|
||||
|
||||
|
||||
#
|
||||
# init: run 'bootstrap.py' build environment setup tool on local machine
|
||||
#
|
||||
|
||||
init :
|
||||
wget -q "https://hg.mozilla.org/mozilla-central/raw-file/default/python/mozboot/bin/bootstrap.py"
|
||||
python3 bootstrap.py --no-interactive --application-choice=browser
|
||||
rm -rf bootstrap.py mozilla-unified
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
all : librewolf-$(version).source$(ext)
|
||||
|
||||
|
||||
clean :
|
||||
rm -rf *~ firefox-$(version) librewolf-$(version) librewolf-$(version).source$(ext) work
|
||||
|
||||
|
||||
veryclean : clean
|
||||
rm -f firefox-$(version).source.tar.xz
|
||||
|
||||
|
||||
fetch :
|
||||
rm -f firefox-$(version).source.tar.xz
|
||||
make firefox-$(version).source.tar.xz
|
||||
|
||||
firefox-$(version).source.tar.xz :
|
||||
wget -q https://archive.mozilla.org/pub/firefox/releases/$(version)/source/firefox-$(version).source.tar.xz
|
||||
|
||||
|
||||
# we take this extra step seperatly because it's so important.
|
||||
librewolf-patches :
|
||||
rm -rf work && mkdir -p work
|
||||
python3 assets/librewolf-patches.py $(version)
|
||||
rm -rf work
|
||||
|
||||
|
||||
librewolf-$(version).source$(ext) : firefox-$(version).source.tar.xz $(version_file) assets/librewolf-patches.py assets/build-librewolf.py assets/mozconfig assets/patches.txt
|
||||
rm -rf firefox-$(version) librewolf-$(version)
|
||||
tar xf firefox-$(version).source.tar.xz
|
||||
|
|
|
@ -107,8 +107,12 @@ def librewolf_patches():
|
|||
|
||||
|
||||
# copy the build-librewolf.py script into the source folder
|
||||
exec('cp -v ../assets/build-librewolf.py .')
|
||||
exec('mkdir -p lw-assets')
|
||||
exec('cp -v ../assets/build-librewolf.py lw-assets')
|
||||
exec('wget -q "https://hg.mozilla.org/mozilla-central/raw-file/default/python/mozboot/bin/bootstrap.py"')
|
||||
exec('mv -v bootstrap.py lw-assets')
|
||||
leave_srcdir()
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue