blob: fcb8c87e871983028918ae31dce4923cc4c3e0d5 (
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
46
47
48
49
50
51
|
#!/bin/oksh
BASE="${0%/*}/.."
. "${BASE}/conf/default.conf"
echo "base dir: ${base_dir}"
echo "script dir: ${script_dir}"
echo "state dir: ${state_dir}"
echo "packages dir: ${packages_dir}"
if test ! -d "${state_dir}"; then
echo "no upstream git state repo of packages.. cloning.."
git clone https://gitlab.archlinux.org/archlinux/packaging/state.git "${state_dir}"
else
echo "upstream git state repo exists.."
fi
if test ! -d "${packages_dir}"; then
echo "creating directory for uptream package description.."
mkdir -p "${packages_dir}"
else
echo "package directory exists"
fi
for repo in core extra; do
for arch in any x86_64; do
if test ! -d "${packages_dir}/${repo}-${arch}"; then
echo "package directory ${packages_dir}/${repo}-${arch} doesn't exist, creating it.."
mkdir "${packages_dir}/${repo}-${arch}"
else
echo "package directory ${packages_dir}/${repo}-${arch} exists"
fi
done
done
if test ! -d "${data_dir}"; then
echo "creating directory for storing data.."
mkdir -p "${data_dir}"
else
echo "data directory exists"
fi
if test ! -d "${aur_state_dir}"; then
echo "no AUR state information directory exists.. creating it.."
mkdir "${aur_state_dir}"
else
echo "AUR state information directory exists."
fi
# TODO: AUR directory
|