diff options
| author | Bdale Garbee <bdale@gag.com> | 2016-01-10 19:04:49 -0700 |
|---|---|---|
| committer | Bdale Garbee <bdale@gag.com> | 2016-01-10 19:04:49 -0700 |
| commit | 70e9064ca962dfd345f8a342afa130f969606553 (patch) | |
| tree | e8e374912df403e7e237aecbd1ec0a19fa6c5c42 /doc/make-am-html | |
| parent | 489d22f448d9927533e90da4d16c5a332a234a8d (diff) | |
| parent | 73ce3f73526edfabccd3b98e6e67de6d82a84b63 (diff) | |
Merge branch 'master' into branch-1.6
Diffstat (limited to 'doc/make-am-html')
| -rwxr-xr-x | doc/make-am-html | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/doc/make-am-html b/doc/make-am-html new file mode 100755 index 00000000..ad8cb0a2 --- /dev/null +++ b/doc/make-am-html @@ -0,0 +1,30 @@ +#!/bin/sh +cat << 'EOF' +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> +<meta http-equiv="Content-Type" content= +"text/html; charset=utf-8" /> +<title>Altus Metrum Documentation</title> +<link rel="stylesheet" type="text/css" href="am.css" /> +<meta name="generator" content="DocBook XSL Stylesheets V1.78.1" /> +</head> +<body> +<h1>Altus Metrum Documentation</h1> +EOF + +for i in "$@"; do + echo '<p>' + grep '<title>' $i | head -1 | sed -e 's/.*<title>//' -e 's;</title>.*;;' + pdf=`basename "$i" .html`.pdf + echo '<a href="'$i'">html</a>' + echo '<a href="'$pdf'">pdf</a>' + echo '</p>' +done + +cat << 'EOF' +</body> +</html> +EOF |
