Commit 4f74f8c9 authored by Bernhard Landauer's avatar Bernhard Landauer

[deployiso] osdn project based on profile

parent 14ff48ab
......@@ -22,6 +22,7 @@ import ${LIBDIR}/util-publish.sh
show_profile(){
prepare_transfer "$1"
info "Profile: [$1]"
msg2 "project: %s" "${project}"
msg2 "src_dir: ${src_dir}"
msg2 "target_dir: ${url}/${target_dir}/"
}
......@@ -54,7 +55,6 @@ display_settings(){
msg "REMOTE:"
msg2 "account: %s" "${account}"
msg2 "host: %s" "${host}"
msg2 "project: %s" "${project}"
msg "UPLOAD QUEUE:"
run show_profile "${build_list_iso}"
......
......@@ -39,6 +39,7 @@ make_torrent(){
prepare_transfer(){
profile="$1"
edition=$(get_edition "${profile}")
[[ -z ${project} ]] && project="$(get_project)"
url=$(connect)
target_dir="${profile}/${dist_release}"
......
......@@ -324,8 +324,6 @@ init_deployiso(){
host="osdn.net"
[[ -z ${project} ]] && project="[SetProject]"
[[ -z ${account} ]] && account="[SetUser]"
[[ -z ${limit} ]] && limit=100
......@@ -435,6 +433,18 @@ get_edition(){
echo ${path##*/}
}
get_project(){
case "${edition}" in
'manjaro')
project="manjaro"
;;
'community')
project="manjaro-community"
;;
esac
echo "${project}"
}
reset_profile(){
unset displaymanager
unset autologin
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment