]> granicus.if.org Git - graphviz/commitdiff
doc: Remove dead code for lines starting with `#<`
authorMark Hansen <mark@markhansen.co.nz>
Sat, 16 May 2020 02:21:09 +0000 (12:21 +1000)
committerMark Hansen <mark@markhansen.co.nz>
Sat, 16 May 2020 02:23:01 +0000 (12:23 +1000)
This `mkoutput.sh` file only operates on the `outputs` file, which has
no lines starting with `#<`. Seems like dead code.

I thought maybe I could use this functionality to include schema.html
without using javascript, but I failed: no lines were included
in the output.

doc/infosrc/mkoutput.sh

index cde58304608e80f7fd13ee214c9b647e8bd88573..60a13f481d67f01f06545dcdb0923f8256d23396 100755 (executable)
@@ -7,10 +7,7 @@ name=
 # and desc arrays, respectively, indexed by the format name.
 # The initial line of an item has the format :name:long name 
 # 
-# Lines beginning with '#' are treated as comments, unless the 
-# following character is '<', in which case, it is assumed the
-# remainder of the line contains a filename, whose contents will
-# be read into the generared html file.
+# Lines beginning with '#' are treated as comments.
 OLDIFS="$IFS"
 IFS=
 while read line
@@ -18,18 +15,7 @@ do
   c=${line:0:1}
   if [[ $c == '#' ]]
   then 
-    if [[ ${line:1:1} == '<' ]]
-    then
-      filename=${line:2}
-      filename=${filename##*( )}
-      filename=${filename%%*( )}
-      while read incline
-      do
-        txt="$txt${incline}\n"
-      done < $filename
-    else
-      continue
-    fi
+    continue
   elif [[ $c == ':' ]]
   then
     if [[ -n "$name" ]]