summaryrefslogtreecommitdiff
path: root/extra/coadde/mkrepo
diff options
context:
space:
mode:
authorcoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2015-08-26 03:33:26 -0300
committercoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2015-08-26 03:33:26 -0300
commit8eafe04ec5eaf917d9e2d58993604c454f1a26d1 (patch)
treec0e9bb91659c3a1f5814ba94ee251639b52c5873 /extra/coadde/mkrepo
parentf17c9169de91036cd4b9bb725d2cc6713ad06ce5 (diff)
re-estructure dbscrips
Diffstat (limited to 'extra/coadde/mkrepo')
-rwxr-xr-xextra/coadde/mkrepo15
1 files changed, 15 insertions, 0 deletions
diff --git a/extra/coadde/mkrepo b/extra/coadde/mkrepo
new file mode 100755
index 0000000..b11dc0b
--- /dev/null
+++ b/extra/coadde/mkrepo
@@ -0,0 +1,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")")/config"
+
+for repo in "$@"; do
+ echo ":: Creating [$repo]"
+ for arch in "${ARCHES[@]}"; do
+ mkdir -pv "${FTP_BASE}/${repo}/os/${arch}"
+ done
+done
+
+echo ":: All done. Add the repo to the ParabolaWeb admin page."