summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-06-17 21:37:44 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-06-17 21:37:44 -0400
commit22f7ae3e5c791694edf4c4b6e5f8623f9a9dddf4 (patch)
tree91dd2da213f793e5ef12dcbcd57aed6e8cab305a
parente3d6871deb5c448b5856ffc25e2c4e55c77f719e (diff)
mkrepo: cleanup
- Use config:FTP_BASE instead of local_config:repodir - Don't mention get_repos script anymore - Remove redundant lines of code. - Better quoting.
-rw-r--r--local_config3
-rwxr-xr-xmkrepo17
2 files changed, 4 insertions, 16 deletions
diff --git a/local_config b/local_config
index 9b4415e..57725fe 100644
--- a/local_config
+++ b/local_config
@@ -10,9 +10,6 @@ mirror="mirrors.kernel.org"
#mirror="mirror.de.leaseweb.net"
mirrorpath="archlinux"
-# mkrepo
-repodir=${_paraboladir}
-
# yf-update
blacklist=${_paraboladir}/docs/blacklist.txt
whitelist=${_paraboladir}/docs/whitelist.txt
diff --git a/mkrepo b/mkrepo
index 10d014b..f30ad00 100755
--- a/mkrepo
+++ b/mkrepo
@@ -4,21 +4,12 @@
# 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
+for repo in "$@"; do
echo ":: Creating [$repo]"
- mkdir -pv ${repodir}/{staging/,}${repo}
-
- for arch in ${ARCHES[@]}; do
- mkdir -pv ${repodir}/${repo}/os/${arch}
+ 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"
-echo " and the get_repos script on the same server."
-
-exit $?
+echo ":: All done. Add the repo to the ParabolaWeb admin page."