blob: 10d014b4bc082d2bc3fa594c5917da671534385f (
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
|
#!/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")")/config"
source "$(dirname "$(readlink -e "$0")")/local_config"
# TODO it would be simpler to expand arrays to {element1,element2,etc}
for repo in $@; do
echo ":: Creating [$repo]"
mkdir -pv ${repodir}/{staging/,}${repo}
for arch in ${ARCHES[@]}; do
mkdir -pv ${repodir}/${repo}/os/${arch}
done
done
echo ":: All done. Add the repo to the parabolaweb admin page"
echo " and the get_repos script on the same server."
exit $?
|