The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
<makerelease>
  <steps>

    <step type="informational" title="print test">
      <text>Hello World!</text>
    </step>

    <step type="prompt" prompt="Enter a number:" title="pick a number"
      parameter="THENUMBER" values="^\d+$" />

    <step type="informational" title="second step" pause='true'>
      <text>Replacement test:  This should be what you entered: {THENUMBER}</text>
    </step>

    <step type="system" title="run some stuff">
      <text>I'm going to run some echo tests</text>
      <commands>
	<command>echo hello world</command>
	<command>echo do something</command>
      </commands>
    </step>

    <step type="section" title="sub step tests">
      <text>This will dive into a number of sub-steps to accomplish
      something big</text>
      <steps>
	<step type="system" title="in a sub test: simple echo">
	  <commands>
	    <command>echo inside</command>
	</commands>
	</step>
	<step type="informational">
	  <text>woot</text>
	</step>
      </steps>
    </step>

    <step type="informational" title="coming back out of sub-steps">
      <text>coming back out</text>
    </step>

    <step type="section" title="Modification Testing Steps">
      <text>This will dive into a set of tests to test the
      modification step mechanisms</text>

      <steps>

	<step type="prompt" prompt="Enter a version number:"
	  title="pick a version number"
	  parameter="VERSION" values="^\d+\.\d+$">
	  <text>Pick a version number to use in this test</text>
	</step>


	<step type="system" title="Set up test files">
	  <text>This copies the test files into place</text>
	  <commands>
	    <command>cp t/test.txt.dist t/test.txt</command>
	    <command>mkdir t/{VERSION}</command>
	    <command>cp t/test.txt.dist t/{VERSION}/test.txt</command>
	  </commands>
	</step>

	<step type="modify" title="Testing Modifications" interactive="yes">
	  <text>This actually modifies the files</text>
	  <modifications>
	    <modify
	      files="t/*.txt"
	      find="^([a-z]+\s*=\s*)([\.0-9]+)"
	      replace="${1}{VERSION}"
	      />
	    <modify
	      find="^([a-z]+\s*=\s*)([\.0-9]+)"
	      replace="${1}{VERSION}">
	      <files>
		<file>t/{VERSION}/*.txt</file>
	      </files>
	    </modify>
	  </modifications>
	</step>

	<step type="system" title="Compare modifications">
	  <text>This tests the old files against the new and shows the
	  differences (using diff)</text>
	  <commands>
	    <command ignoreerror="1" test="x">diff -u t/test.txt.dist t/test.txt</command>
	    <command ignoreerror="1" test="x">diff -u t/test.txt.dist t/{VERSION}/test.txt</command>
	  </commands>
	</step>
      </steps>
    </step>
  </steps>
</makerelease>