Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
58 lines (45 sloc) 2.04 KB
VENDOR := $(CURDIR)/vendor
VERSION := $(shell date +%Y.%m.%d)
GPGKEY := 9741E8AC
all: build-iso build-netboot build-bootstrap create-signatures create-torrent build-docker show-info
clean:
git clean -xdf -e .idea -e codesign.crt -e codesign.key
build-iso:
$(eval TMPDIR := $(shell mktemp -d))
(cd $(TMPDIR) && sudo GNUPGHOME=$(HOME)/.gnupg /usr/share/archiso/configs/releng/build.sh -g $(GPGKEY))
cp $(TMPDIR)/out/archlinux-$(VERSION)-x86_64.iso .
sudo rm -rf $(TMPDIR)
build-netboot:
bsdtar -x --exclude=arch/boot/syslinux \
--exclude 'memtest*' --exclude 'pkglist.*' \
-f archlinux-$(VERSION)-x86_64.iso \
arch/
for f in arch/boot/intel_ucode.img arch/boot/x86_64/vmlinuz arch/boot/x86_64/archiso.img; do \
$(VENDOR)/arch_netboot_tools/codesigning/sign_file.sh $$f \
$(CURDIR)/codesign.crt \
$(CURDIR)/codesign.key; \
done
build-bootstrap:
sudo $(VENDOR)/genbootstrap/genbootstrap
build-docker:
cd vendor/archlinux-docker && sudo $(MAKE) docker-image-test
create-signatures:
for f in archlinux-$(VERSION)-x86_64.iso archlinux-bootstrap-$(VERSION)-x86_64.tar.gz; do \
gpg --use-agent --detach-sign $$f; \
done
sha1sum archlinux-$(VERSION)-x86_64.iso archlinux-bootstrap-$(VERSION)-x86_64.tar.gz > sha1sums.txt
md5sum archlinux-$(VERSION)-x86_64.iso archlinux-bootstrap-$(VERSION)-x86_64.tar.gz > md5sums.txt
create-torrent:
$(VENDOR)/archlinux-torrent-utils/mktorrent-archlinux $(VERSION) archlinux-$(VERSION)-x86_64.iso
upload-release:
rsync -cah --progress \
archlinux-$(VERSION)-x86_64.iso* md5sums.txt sha1sums.txt arch archlinux-bootstrap-$(VERSION)-x86_64.tar.gz* \
-e ssh repos.archlinux.org:tmp/
cd vendor/archlinux-docker && $(MAKE) docker-push
show-info:
@file arch/boot/x86_64/vmlinuz | grep -P -o 'version [^-]*'
@grep archlinux-$(VERSION)-x86_64.iso sha1sums.txt
@grep archlinux-$(VERSION)-x86_64.iso md5sums.txt
copy-torrent:
base64 archlinux-$(VERSION)-x86_64.iso.torrent | xclip
.PHONY: all clean build-iso build-netboot build-bootstrap build-docker create-signatures create-torrent upload-release show-info copy-torrent
You can’t perform that action at this time.