summaryrefslogtreecommitdiffstats
path: root/bin/ptxdist
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ptxdist')
-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