summaryrefslogtreecommitdiff
path: root/maintainer
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2017-05-08 19:57:24 (GMT)
committerAlexey Neyman <stilor@att.net>2017-07-08 17:56:29 (GMT)
commit2c615fa62c47c324adfd91cde7a68bd06b6164d5 (patch)
tree82fbaf0bcee75a52528aef31cc18d20dbbd0835a /maintainer
parent85599c47431a3c6bf50a7b12b8e37c741b4c8e81 (diff)
More work-in-progress.
Signed-off-by: Alexey Neyman <stilor@att.net>
Diffstat (limited to 'maintainer')
-rwxr-xr-xmaintainer/gen-versions.sh44
1 files changed, 42 insertions, 2 deletions
diff --git a/maintainer/gen-versions.sh b/maintainer/gen-versions.sh
index 1d5cb76..c13abd2 100755
--- a/maintainer/gen-versions.sh
+++ b/maintainer/gen-versions.sh
@@ -139,14 +139,54 @@ config ${info[pfx]}_V_${info[kcfg]}
depends on OBSOLETE}${info[experimental]:+
depends on EXPERIMENTAL}'\"
- # TBD devel (from official repository)
- # TBD show changeset/revision/branch selection
+ if [ -n "${info[repository]}" ]; then
+ cat <<EOF
+
+config ${info[pfx]}_V_DEVEL
+ bool "development"
+ depends on EXPERIMENTAL
+ help
+ Check out from the repository: ${info[repository]#* }
+EOF
+ fi
+
# TBD custom (local tarball/directory)
# TBD show custom location selection
cat <<EOF
endchoice
+EOF
+
+ if [ -n "${info[repository]}" ]; then
+ local -A dflt_branch=( [git]="master" [svn]="/trunk" )
+ cat <<EOF
+
+if ${info[pfx]}_V_DEVEL
+
+config ${info[pfx]}_DEVEL_URL
+ string
+ default "${info[repository]}"
+
+config ${info[pfx]}_DEVEL_BRANCH
+ string "Branch to check out"
+ default "${dflt_branch[${info[repository]%% *}]}"
+ help
+ Git: branch to be checked out
+ Subversion: directories to append to the repository URL.
+
+config ${info[pfx]}_DEVEL_REVISION
+ string "Revision/changeset"
+ default "HEAD"
+ help
+ Commit ID or revision ID to check out.
+
+endif
+
+EOF
+ fi
+
+ cat <<EOF
# Text string with the version of ${info[name]}
config ${info[pfx]}_VERSION