File: make-driver-toc.sh

package info (click to toggle)
lirc 0.10.1-6
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 8,364 kB
  • sloc: ansic: 26,717; cpp: 9,066; sh: 5,521; python: 4,362; makefile: 1,034; xml: 63
file content (22 lines) | stat: -rwxr-xr-x 422 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env bash

cat << EOT
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="ul[@class='driver-toc']">
  <UL TYPE="disc">
EOT

for f in $@; do
    basename=$(basename $f .html)
    echo "     <LI><A HREF=\"$basename.html\">${basename}</A></LI>"
done

cat << EOT
  </UL>
  <UL class="ext-driver-toc"/>
</xsl:template>
</xsl:stylesheet>
EOT