summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/isodoc/listkeys
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/isodoc/listkeys')
-rw-r--r--Master/texmf-dist/doc/latex/isodoc/listkeys7
1 files changed, 4 insertions, 3 deletions
diff --git a/Master/texmf-dist/doc/latex/isodoc/listkeys b/Master/texmf-dist/doc/latex/isodoc/listkeys
index d6728cf6d03..b06e9a7648c 100644
--- a/Master/texmf-dist/doc/latex/isodoc/listkeys
+++ b/Master/texmf-dist/doc/latex/isodoc/listkeys
@@ -1,4 +1,4 @@
-#!/usr/local/bin/ruby
+#!/usr/bin/env ruby
# after the addition of new options, two regions of the documentation in
# isodoc.dtx need to be updated:
@@ -21,7 +21,8 @@ type = ARGV.pop
ARGV.push('isodoc.dtx')
a = []
-a.push($1) if ~ /\\define@key\{isodoc\}\{(.*)\}\s*\{\\def\\/ while gets
+# find keys which have a corresponding command:
+a.push($1) if ~ /\\define@key\{isodoc\}\s*\{(.*)\}\s*(\[.*?\])?\s*\{\\def\\/ while gets
a.sort!
case type
when 'show'
@@ -47,4 +48,4 @@ case type
usage
end
-# $Id: listkeys,v 1.1.1.1 2006/09/15 21:27:36 wybo Exp $
+# $Id: listkeys,v 1.3 2008/04/30 13:42:18 wybo Exp $