File: spec-to-docbook.sh

package info (click to toggle)
packagekit 1.3.4-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 14,824 kB
  • sloc: ansic: 56,491; cpp: 15,652; xml: 5,532; python: 4,932; sh: 316; perl: 60; makefile: 56
file content (7 lines) | stat: -rw-r--r-- 324 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
#!/bin/sh
spec_to_docbook_xsl="$1"
input_file="$2"
output_file="$3"

echo "<?xml version=\"1.0\"?>""<!DOCTYPE refentry PUBLIC \"-//OASIS//DTD DocBook XML V4.1.2//EN\" \"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd\">" > ${output_file}
xsltproc ${spec_to_docbook_xsl} ${input_file} | tail -n +2 >> ${output_file}