Commit f80415a9 authored by Claes Sjofors's avatar Claes Sjofors

pwrp_env fix for release script

parent 84b2768d
...@@ -213,23 +213,23 @@ pwrc_prlist_read() ...@@ -213,23 +213,23 @@ pwrc_prlist_read()
return return
fi fi
let i=0 pr_i=0
let j=0 pr_j=0
while read name base root path descr; do while read name base root path descr; do
if [ -n "$name" ] && [ "${name:0:1}" != "!" ] && [ "${name:0:1}" != "#" ]; then if [ -n "$name" ] && [ "${name:0:1}" != "!" ] && [ "${name:0:1}" != "#" ]; then
if [ "$name" == "%base" ]; then if [ "$name" == "%base" ]; then
b_name_array[$j]=$base b_name_array[$pr_j]=$base
b_root_array[$j]=$root b_root_array[$pr_j]=$root
j=$j+1 pr_j=$pr_j+1
else else
name_array[$i]=$name name_array[$pr_i]=$name
base_array[$i]=$base base_array[$pr_i]=$base
root_array[$i]=$root root_array[$pr_i]=$root
path_array[$i]=$path path_array[$pr_i]=$path
descr=${descr#\"} descr=${descr#\"}
descr=${descr%\"} descr=${descr%\"}
desc_array[$i]=$descr desc_array[$pr_i]=$descr
i=$i+1 pr_i=$pr_i+1
fi fi
fi fi
...@@ -290,17 +290,17 @@ pwrc_prlist_list_project() ...@@ -290,17 +290,17 @@ pwrc_prlist_list_project()
pwrc_prlist_get_index() pwrc_prlist_get_index()
{ {
let i=0 pr_i=0
pwrc_status=$pwrc__noproj pwrc_status=$pwrc__noproj
while [ "${name_array[$i]}" != "" ]; do while [ "${name_array[$pr_i]}" != "" ]; do
if [ "${base_array[$i]}" != "" ] && [ "${name_array[$i]}" == $1 ]; then if [ "${base_array[$pr_i]}" != "" ] && [ "${name_array[$pr_i]}" == $1 ]; then
pwrc_current_index=$i pwrc_current_index=$pr_i
pwrc_status=$pwrc__success pwrc_status=$pwrc__success
break; break;
fi fi
i=$i+1 pr_i=$pr_i+1
done done
} }
......
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