summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2010-04-21 12:25:03 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2010-04-21 14:04:54 +0200
commit7744a665990d762c0b521e78c398087c0e4edebf (patch)
treef09523f43bf8fa664d51038ec184afcaee112a33 /bin
parent382945f37ac21dfbee45c8cf941a8a05984ea008 (diff)
downloadptxdist-7744a665990d762c0b521e78c398087c0e4edebf.tar.gz
ptxdist-7744a665990d762c0b521e78c398087c0e4edebf.tar.xz
[ptxdist] ask for section in 'ptxdist newpackage'
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ptxdist5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/ptxdist b/bin/ptxdist
index 5d67eafce..ac6b5ab8e 100755
--- a/bin/ptxdist
+++ b/bin/ptxdist
@@ -1104,6 +1104,10 @@ newpackage() {
-i "${PTXCONF_SETUP_USER_NAME} <${PTXCONF_SETUP_USER_EMAIL}>" \
author
+ local section
+ read -e -p "${PTXDIST_LOG_PROMPT}enter package section....: " \
+ -i "project_specific" section
+
local package_filename="${package_name}"
local package="$(echo ${package_name} | tr "[A-Z]" "[a-z]")"
local packagedash="$(echo ${package} | tr "[_]" "[\-]")"
@@ -1148,6 +1152,7 @@ newpackage() {
-e "s#\@YEAR@#${year}#g" \
-e "s#\@AUTHOR@#${author}#g" \
-e "s#\@SUFFIX@#${suffix}#g" \
+ -e "s#\@section@#${section}#g" \
"${template_file}" \
> "${filename}" || return
done