Fork of Arch Linux devtools from https://git.archlinux.org/devtools.git
Go to file
Tobias Powalowski 0365edb264
fix: enable extglob before func definition for bash-5.2 compatibility
The `extglob` option changes the behavior of the shell parser, since
extended glob patterns would otherwise be syntax errors. bash-5.2
changed the way a function definition is processed by calling the parser
instead of relying on the ad-hoc code in bash-5.1 and earlier versions.
This means, in bash-5.2 the shell function was parsed without `extglob`
being enabled because the `shopt` command to enable it was part of the
function body.

Add `shopt` options for `extglob` around function definitions to address
this issue and allow bash-5.2 to correctly parse the function.

Co-authored-by: Frédéric Pierret (fepitre) <frederic.pierret@qubes-os.org>
Co-authored-by: Levente Polyak <anthraxx@archlinux.org>
Signed-off-by: Levente Polyak <anthraxx@archlinux.org>
2023-03-06 21:51:27 +01:00
config makepkg.conf: enable rust debuginfo 2023-01-03 23:23:43 +01:00
contrib diffpkg: prefer to search inside the pool dir if available 2022-08-31 02:26:47 +02:00
doc archbuild: add doc for bind mount config 2023-03-06 21:06:59 +01:00
lib fix: enable extglob before func definition for bash-5.2 compatibility 2023-03-06 21:51:27 +01:00
src fix: enable extglob before func definition for bash-5.2 compatibility 2023-03-06 21:51:27 +01:00
.gitignore make: use build dir as target instead of polluting root workdir 2022-06-22 01:05:02 +02:00
.gitlab-ci.yml build: enable gitlab-ci 2022-04-28 19:10:59 +02:00
LICENSE Add GPL-3.0 license file 2021-10-29 09:16:05 +02:00
Makefile fix: enable extglob before func definition for bash-5.2 compatibility 2023-03-06 21:51:27 +01:00
README.md doc: update links and references after moving to GitLab 2022-06-22 01:05:03 +02:00

README.md

Devtools - development tools for Arch Linux

This repository contains tools for the Arch Linux distribution for building and maintaining official repository packages.

Building

When building official distro packages the BUILDTOOLVER needs to be set to the exact label of the release package in order to allow to detect the exactly used devtools version. This is required for reproducible builds to fetch the according files like makepkg.conf.

BUILDTOOLVER="${pkgver}-${pkgrel}-${arch}" make all

Releasing

  1. bump the version in the Makefile
  2. Commit everything as Version $(date +"%Y%m%d")
  3. Create a new tag git tag -s $(date +"%Y%m%d")
  4. Push changes
  5. Upload the source tarball with make dist upload
  6. Update the package

License

Devtools is licensed under the terms of the GPL-3.0-or-later (see LICENSE).