Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/conf/default.conf
blob: 9da159c0d3328aadab94c6d2348f31fe6f1136d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/bash

# set up some common variables

set -e

base_dir="$(dirname "$(readlink -f "$0")")/.."

. "${base_dir}/bin/common-functions"

work_dir="${base_dir}/work"

declare -A repo_paths
repo_paths["packages"]="${work_dir}/repos/packages"
repo_paths["community"]="${work_dir}/repos/community"
repo_paths["archlinux32"]="${work_dir}/repos/packages32"

lock_file="/tmp/${0##*/}.lock"

max_parallel_build_per_client=2

# possibly pull in custom modifications

[ -r "${base_dir}/conf/local.conf" ] && . "${base_dir}/conf/local.conf"

# check / set up environment

mkdir -p "${work_dir}"
touch "${work_dir}/build-list"
touch "${work_dir}/deletion-list"

for repo in "${!repo_paths[@]}"; do

  mkdir -p "${repo_paths["${repo}"]%/*}"

  if ! git -C "${repo_paths["${repo}"]}" status &> /dev/null; then
    if [ "${repo}" == "packages32" ]; then
      repo_source='git@github.com:archlinux32/packages.git'
    else
      repo_source="git://git.archlinux.org/svntogit/${repo}.git"
    fi
    git clone "${repo_source}" "${repo_paths["${repo}"]}"
  fi

done