summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Ismael Haase Hernández <hahj87@gmail.com>2011-06-21 11:38:35 -0700
committerJoshua Ismael Haase Hernández <hahj87@gmail.com>2011-06-21 11:38:35 -0700
commit8e235f1aacc48486a31941925a8c1db005331677 (patch)
tree58703d52ffd41bc8fa2948e0a45284e864173194
parent9bcf313647a3dd4ae44016894b1fe599d1f90c18 (diff)
parent8a874d242c8d86059261c098dfec1b0b1ac9e444 (diff)
Merge branch 'master' of http://projects.parabolagnulinux.org/dbscripts into stable
-rwxr-xr-xmkrepo24
1 files changed, 24 insertions, 0 deletions
diff --git a/mkrepo b/mkrepo
new file mode 100755
index 0000000..5f704cc
--- /dev/null
+++ b/mkrepo
@@ -0,0 +1,24 @@
+#!/bin/bash
+# Author: Nicolás Reynolds <fauno@kiwwwi.com.ar>
+# License: GPLv3+
+# Description: A script to quickly create new [repos]
+
+source $(dirname $0)/config
+source $(dirname $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 $?