summaryrefslogtreecommitdiffstats
path: root/src/ppt-make
diff options
context:
space:
mode:
Diffstat (limited to 'src/ppt-make')
-rw-r--r--src/ppt-make14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/ppt-make b/src/ppt-make
index 4e36267..eb9a475 100644
--- a/src/ppt-make
+++ b/src/ppt-make
@@ -15,12 +15,22 @@ main()
prompt 'Maintainer name' MAINTAINER_NAME
prompt 'Maintainer e-mail address' MAINTAINER_MAILBOX
+ if [ "x${MAINTAINER_NAME#\"}" = "x${MAINTAINER_NAME}" ]; then
+ if [ "x${MAINTAINER_NAME#*[()<>\[\]:;@\\,.]}" != \
+ "x${MAINTAINER_NAME}" ]; then
+ MAINTAINER_NAME="\"${MAINTAINER_NAME}\""
+ fi
+ fi
+ if [ "x${MAINTAINER_MAILBOX#<}" = "x${MAINTAINER_MAILBOX}" ]; then
+ MAINTAINER_MAILBOX="<${MAINTAINER_MAILBOX}>"
+ fi
+
date="$(LC_ALL='POSIX' date '+%a, %d %b %Y %H:%M:%S %z')"
printf '2.0\n' >format
cat >control <<-EOF
- Maintainer: ${MAINTAINER_NAME} <${MAINTAINER_MAILBOX}>
+ Maintainer: ${MAINTAINER_NAME} ${MAINTAINER_MAILBOX}
Build-Depends: platconf-pkg-tools (>= ${PPT_VERSION%.*})
EOF
@@ -29,7 +39,7 @@ main()
* Initial release.
- -- ${MAINTAINER_NAME} <${MAINTAINER_MAILBOX}> ${date}
+ -- ${MAINTAINER_NAME} ${MAINTAINER_MAILBOX} ${date}
EOF
mkdir src src/build src/run