<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="xpkg.xsl"?>
<instructions
	xmlns="http://xtreeme.org/xpkg/instructions"
	xmlns:html="http://www.w3.org/1999/xhtml"
	xml:lang="en"
>
	<copyFiles from="root/" to="/"/>

	<makeWritable type="dir" name="/cache"/>

	<makeWritable type="file" name="/helloconfig.php"/>

	<runFile name="/preinstall_helloworld.php"/>

	<editFile name="/index.php">
		<action>
			<find><![CDATA[text to find]]></find>
			<lineBefore>
				<insert><![CDATA[line to be inserted in line before found text.]]></insert>
			</lineBefore>
			<before>
				<insert><![CDATA[text to be inserted before found text but in the same line.]]></insert>
			</before>
			<in>
				<action>
					<find><![CDATA[to find]]></find>
					<replaceWith><![CDATA[that was found]]></replaceWith>
				</action>
			</in>
			<after>
				<insert><![CDATA[text to be inserted after found text but in the same line.]]></insert>
			</after>
			<lineAfter>
				<insert><![CDATA[line to be inserted in line after found text.]]></insert>
			</lineAfter>
		</action>
		<action>
			<find><![CDATA[ext to fin]]></find>
			<in>
				<action>
					<find><![CDATA[xt to fi]]></find>
					<in>
						<action>
							<find><![CDATA[t to f]]></find>
							<in>
								<action>
									<find><![CDATA[ to ]]></find>
									<remove/>
								</action>
							</in>
						</action>
					</in>
				</action>
			</in>
		</action>
	</editFile>

	<editFile name="/other/file.php">
		<action>
			<find><![CDATA[ext to find]]></find>
			<replaceWith><![CDATA[ext that was found]]></replaceWith>
		</action>
		<action>
			<find><![CDATA[ext to find]]></find>
			<replaceLinesWith><![CDATA[text that was found]]></replaceLinesWith>
		</action>
		<action>
			<find><![CDATA[ext to find]]></find>
			<remove/>
		</action>
		<action>
			<find><![CDATA[ext to find]]></find>
			<removeLines/>
		</action>
	</editFile>

	<followInstructions forType="style"/>

	<runFile name="/postinstall_helloworld.php"/>

	<otherInstructions>
		<html:span>Set permissions to Hello World.</html:span>
		<html:span xml:lang="pl">Ustaw uprawnienia do witania świata.</html:span>
	</otherInstructions>
</instructions>

