summaryrefslogtreecommitdiff
path: root/create-repo
diff options
context:
space:
mode:
Diffstat (limited to 'create-repo')
-rwxr-xr-xcreate-repo8
1 files changed, 5 insertions, 3 deletions
diff --git a/create-repo b/create-repo
index e390974..ae49ffa 100755
--- a/create-repo
+++ b/create-repo
@@ -16,11 +16,11 @@ fi
for 'platform' in "${PLATFORMS[@]}"; do
case $1 in
--platform|-platform|platform|-p)
- source "$(dirname "$(readlink -e "$0")")/config_${2}"
-
_repos=($@) && unset _repos[0] _repos[1]
if [ "$2" == "${platform}" ]; then
+ source "$(dirname "$(readlink -e "$0")")/config_${2}"
+
msg "Creating repos... from $2 platform"
for '_repo' in "${_repos[@]}"; do
msg2 "Creating [%s]" "${_repo_all}"
@@ -29,10 +29,11 @@ for 'platform' in "${PLATFORMS[@]}"; do
error "Failed creating %s dir" "${_arch}" "from $2 platform"
done
done
+
+ msg "Don't forget to add them to the PKG_REPOS array on %s" "$(dirname "$(readlink -e "$0")")/config_${2}"
else
create-repo-usage
fi
- msg "Don't forget to add them to the PKG_REPOS array on %s" "$(dirname "$(readlink -e "$0")")/config_${2}"
;;
*)
source "$(dirname "$(readlink -e "$0")")/config_${platform}"
@@ -45,6 +46,7 @@ for 'platform' in "${PLATFORMS[@]}"; do
error "Failed creating %s dir" "${_arch}" "in all platforms"
done
done
+
msg "Don't forget to add them to the PKG_REPOS array on %s" "$(dirname "$(readlink -e "$0")")/config_${platform}"
;;
esac