index : checker | |
Archlinux32 consistency checker | gitolite user |
summaryrefslogtreecommitdiff |
author | Andreas Baumann <mail@andreasbaumann.cc> | 2024-09-12 07:53:18 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2024-09-12 07:53:18 +0200 |
commit | c6b8602075156e9997d0504fc861f11cd60ab613 (patch) | |
tree | 5ae82af4b74bf8f8d8feca4a9f57ef9010814655 /bin/setup |
-rwxr-xr-x | bin/setup | 36 |
diff --git a/bin/setup b/bin/setup new file mode 100755 index 0000000..f1e252c --- /dev/null +++ b/bin/setup @@ -0,0 +1,36 @@ +#!/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 + +# TODO: AUR directory |