summaryrefslogtreecommitdiffstats
path: root/src/ppt-make
diff options
context:
space:
mode:
Diffstat (limited to 'src/ppt-make')
-rw-r--r--src/ppt-make10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/ppt-make b/src/ppt-make
index eb9a475..63e03f6 100644
--- a/src/ppt-make
+++ b/src/ppt-make
@@ -11,7 +11,15 @@ main()
{
local date=
- prompt 'Platform' PLATFORM
+ while [ "x${PLATFORM}" = 'x' ]; do
+ prompt 'Platform' PLATFORM
+ if [ "x${PLATFORM#*[^a-z0-9-]}" != "x${PLATFORM}" ]; then
+ printf 'Error: Platform name may consist only of %s\n' \
+ 'lowercase Latin letters, digits, and hypens' \
+ >&2
+ PLATFORM=''
+ fi
+ done
prompt 'Maintainer name' MAINTAINER_NAME
prompt 'Maintainer e-mail address' MAINTAINER_MAILBOX