summaryrefslogtreecommitdiff
path: root/extra/coadde/mkrepo
diff options
context:
space:
mode:
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."