summaryrefslogtreecommitdiff
path: root/mkrepo
blob: 06708b90f63a4bd9bf212e4405e29ea5a47a2a09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash
# Author: Nicolás Reynolds <fauno@kiwwwi.com.ar>
# License: GPLv3+
# Description: A script to quickly create new [repos]

source "$(dirname "$(readlink -e "$0")")/etc/dbscripts.cfg"

for repo in "$@"; do
	echo ":: Creating [$repo]"
	for arch in "${native_architectures[@]}"; do
		mkdir -pv "${root_dir}/${repo}/os/${arch}"
	done
done

echo ":: All done.  Add the repo to the ParabolaWeb admin page."