diff options
author | Ben Pfaff <blp@ovn.org> | 2016-02-08 20:18:35 -0800 |
---|---|---|
committer | Russell Bryant <russell@ovn.org> | 2016-02-09 12:39:38 -0500 |
commit | 8407695da7a11cc1652128218bf69a0112937d1a (patch) | |
tree | e37c3d88678c00b4bd2eb9113cfe5a0463230669 /build-aux | |
parent | 6b3043359519e1716a3d6a57d43c153b8e1d2cf0 (diff) | |
download | openvswitch-8407695da7a11cc1652128218bf69a0112937d1a.tar.gz |
dist-docs: Install plaintext files properly.
We shouldn't try to treat every file as Markdown.
Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'build-aux')
-rwxr-xr-x | build-aux/dist-docs | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/build-aux/dist-docs b/build-aux/dist-docs index 1aeefa7a9..93709c8cc 100755 --- a/build-aux/dist-docs +++ b/build-aux/dist-docs @@ -70,23 +70,38 @@ for file do title=`head -1 "$srcdir/$file"` dir=$distdir/`dirname $file`; test -d "$dir" || mkdir "$dir" - cp "$srcdir/$file" "$distdir/$file.txt" - (cat <<EOF + case $file in + *.md) + cp "$srcdir/$file" "$distdir/$file.txt" + (cat <<EOF <html><head> <meta charset="UTF-8"></head> <link rel="stylesheet" type="text/css" href="style.css"> <title>$file (Open vSwitch $VERSION)</title> </head><body> EOF - markdown "$distdir/$file.txt" - echo "</body></html>") > "$distdir/$file.html" - cat <<EOF + markdown "$distdir/$file.txt" + echo "</body></html>") > "$distdir/$file.html" + cat <<EOF <tr> <td>$file</td> <td>$title</td> <td><a href="$file.html">HTML</a>, <a href="$file.txt">plain text</a></td> </tr> EOF + ;; + + *) + cp "$srcdir/$file" "$distdir/$file" + cat <<EOF +<tr> + <td>$file</td> + <td>$title</td> + <td><a href="$file">plain text</a></td> +</tr> +EOF + ;; + esac done >&3 # Add header for manpages to index.html. |