aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/strings.sh
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-03-06 14:24:49 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-03-06 14:24:49 +0000
commita454003ad67073a51037d0dc5dcbf5b3cced1b8e (patch)
tree55c6dd71b1f4ad3af5079c7fc6a5c1d6def01a2a /strings.sh
parent236dae9fb3183b9c1d8bc6f77614797d65800987 (diff)
downloadmandoc-a454003ad67073a51037d0dc5dcbf5b3cced1b8e.tar.gz
mandoc-a454003ad67073a51037d0dc5dcbf5b3cced1b8e.tar.zst
mandoc-a454003ad67073a51037d0dc5dcbf5b3cced1b8e.zip
Documented the strings script.
Diffstat (limited to 'strings.sh')
-rw-r--r--strings.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/strings.sh b/strings.sh
index 84b7244c..18c54f28 100644
--- a/strings.sh
+++ b/strings.sh
@@ -1,5 +1,5 @@
#! /bin/sh
-# $Id: strings.sh,v 1.1 2009/03/06 14:13:47 kristaps Exp $
+# $Id: strings.sh,v 1.2 2009/03/06 14:24:49 kristaps Exp $
# strings.sh [-o output] name input
#
@@ -67,6 +67,9 @@ mdoc_a2${name}(const char *p)
!
while read in ; do
+ [ -z "$in" ] && continue;
+ [ "#" == `echo "$in" | cut -c1` ] && continue;
+
key=`printf "%s\n" "$in" | cut -f 1`
val=`printf "%s\n" "$in" | cut -f 2- | sed 's!^[ ]*!!'`
cat <<!