0
Fork 0
mirror of https://codeberg.org/librewolf/source.git synced 2024-12-22 05:33:03 -05:00

added upstream.mk

This commit is contained in:
Bert van der Weerd 2022-01-08 20:15:04 +01:00
parent 5447fb20ab
commit 53cdac8984
No known key found for this signature in database
GPG key ID: 4CFABB96ADE0F5B1
2 changed files with 12 additions and 11 deletions

View file

@ -4,6 +4,7 @@
version:=$(shell cat ./version)
release:=$(shell cat ./release)
include upstream.mk
## simplistic archive format selection
@ -35,7 +36,6 @@ check : README.md
@echo "Current release:" $$(cat ./release)
@make --no-print-directory -q README.md
all : librewolf-$(version)-$(release).source$(ext) README.md
@ -44,18 +44,13 @@ clean :
veryclean : clean
rm -f firefox-$(version).source.tar.xz
rm -f $(upstream_filename)
rm -rf librewolf-$(version)
firefox-$(version).source.tar.xz :
wget -q https://archive.mozilla.org/pub/firefox/releases/$(version)/source/firefox-$(version).source.tar.xz
librewolf-$(version)-$(release).source$(ext) : firefox-$(version).source.tar.xz ./version ./release scripts/librewolf-patches.py assets/mozconfig assets/patches.txt
rm -rf firefox-$(version) librewolf-$(version)
tar xf firefox-$(version).source.tar.xz
mv firefox-$(version) 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)
python3 scripts/librewolf-patches.py $(version)
rm -f librewolf-$(version)-$(release).source$(ext)
$(archive_create) librewolf-$(version)-$(release).source$(ext) librewolf-$(version)

6
upstream.mk Normal file
View file

@ -0,0 +1,6 @@
## 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
##