diff options
author | Levente Polyak <anthraxx@archlinux.org> | 2022-09-11 20:42:30 +0200 |
---|---|---|
committer | Levente Polyak <anthraxx@archlinux.org> | 2023-05-19 22:27:11 +0200 |
commit | 5eb09a9cc931ca506875276dcd7b794395ba77d0 (patch) | |
tree | 695a655f240a10b6e9374081cbe2884bb21f027d /lib/common.sh | |
parent | 66758941594831e5da81a7c00280e73ccc842688 (diff) | |
download | devtools-5eb09a9cc931ca506875276dcd7b794395ba77d0.tar.xz |
archco: implement clone and configure subcommands
Manages Git packaging repositories and helps with their configuration
according to distro specs.
Git author information and the used signing key is set up from
makepkg.conf read from any valid location like /etc or XDG_CONFIG_HOME.
The configure command can be used to synchronize the distro specs and
makepkg.conf settings for previously cloned repositories.
The unprivileged option can be used for cloning packaging repositories
without SSH access using read-only HTTPS.
Signed-off-by: Levente Polyak <anthraxx@archlinux.org>
Diffstat (limited to 'lib/common.sh')
-rw-r--r-- | lib/common.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/common.sh b/lib/common.sh index 577bb6e..5f134ae 100644 --- a/lib/common.sh +++ b/lib/common.sh @@ -19,6 +19,15 @@ export LANG=C export BUILDTOOL=devtools export BUILDTOOLVER=m4_devtools_version +# Set common properties +export PACMAN_KEYRING_DIR=/etc/pacman.d/gnupg +export GITLAB_HOST=gitlab.archlinux.org +export GIT_REPO_SPEC_VERSION=1 +export GIT_PACKAGING_NAMESPACE=archlinux/packaging/packages +export GIT_PACKAGING_NAMESPACE_ID=11323 +export GIT_PACKAGING_URL_SSH="ssh://git@${GITLAB_HOST}/${GIT_PACKAGING_NAMESPACE}" +export GIT_PACKAGING_URL_HTTPS="https://${GITLAB_HOST}/${GIT_PACKAGING_NAMESPACE}" + # check if messages are to be printed using color if [[ -t 2 && "$TERM" != dumb ]]; then colorize |