File: spec-to-docbook.sh

package info (click to toggle)
packagekit 1.3.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 14,704 kB
  • sloc: ansic: 56,209; cpp: 13,919; python: 4,970; xml: 4,945; sh: 313; perl: 60; makefile: 57
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}