From b54b8f5b25403cf3b9623804b2491ec78a8b913e Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Tue, 21 May 2024 01:29:20 +0200 Subject: build: replace autotools with cmake this patch removes all the autoconf/automake/libtool build infrastructure and replaces it with cmake. notable default behavior changes: - man pages are not pre-built, and are not built by default, must be enabled with `-DBUILD_MANPAGES=ON`. removed features: - srpm packaging, to be reintroduced at some point. - deb packaging, now handled externally via rafaelmartins/deb.rgm.io more stuff must be missing, please report bugs! --- maint/download_release.py | 49 ----------------------------------------------- 1 file changed, 49 deletions(-) delete mode 100755 maint/download_release.py (limited to 'maint/download_release.py') diff --git a/maint/download_release.py b/maint/download_release.py deleted file mode 100755 index 6618972..0000000 --- a/maint/download_release.py +++ /dev/null @@ -1,49 +0,0 @@ -#!/usr/bin/env python3 -# coding: utf-8 - -import os -import re -import requests -import shutil -import subprocess -import sys - -re_version = re.compile(r'blogc-([^\'"]+)\.tar\.gz') -re_distfile = re.compile(r'(blogc[^\'"]+)\.sha512') -base_url = 'https://distfiles.rgm.io/blogc' -cwd = os.path.dirname(os.path.abspath(__file__)) -gpg_key = '0x47B8CCD75DBE6358' - - -def download_release(version): - if version is None: - release_url = '%s/LATEST' % (base_url,) - r = requests.get(release_url) - r.raise_for_status() - match = re_version.search(r.text) - if match is None: - raise RuntimeError('Could not guess version') - version = match.group(1) - else: - release_url = '%s/blogc-%s' % (base_url, version) - r = requests.get(release_url) - r.raise_for_status() - - dest_path = os.path.join(cwd, 'releases', version) - if os.path.exists(dest_path): - shutil.rmtree(dest_path) - os.makedirs(dest_path) - - for distfile in set(re_distfile.findall(r.text)): - file_url = '%s/%s' % (release_url, distfile) - subprocess.check_call(['wget', '-P', dest_path, file_url, - '%s.sha512' % file_url]) - subprocess.check_call(['sha512sum', '-c', '%s.sha512' % distfile], - cwd=dest_path) - subprocess.check_call(['gpg', '--local-user', gpg_key, '--detach-sign', - '--armor', distfile], - cwd=dest_path) - - -if __name__ == '__main__': - download_release(sys.argv[1] if len(sys.argv) > 1 else None) -- cgit v1.2.3-18-g5258