qemu/scripts/gtester-cat
<<
>>
Prefs
   1#!/bin/sh
   2#
   3# Copyright IBM, Corp. 2012
   4#
   5# Authors:
   6#  Anthony Liguori <aliguori@us.ibm.com>
   7#
   8# This work is licensed under the terms of the GNU GPLv2 or later.
   9# See the COPYING file in the top-level directory.
  10
  11cat <<EOF
  12<?xml version="1.0"?>
  13<gtester>
  14 <info>
  15  <package>qemu</package>
  16  <version>0.0</version>
  17  <revision>rev</revision>
  18 </info>
  19EOF
  20
  21sed \
  22  -e '/<?xml/d' \
  23  -e '/^<gtester>$/d' \
  24  -e '/<info>/,/<\/info>/d' \
  25  -e '$b' \
  26  -e '/^<\/gtester>$/d' "$@"
  27