<?xml version="1.0"?>
<?xml-stylesheet href="package-info.xsl" type="text/xsl"?>
<!DOCTYPE package-info SYSTEM "http://www.simplemachines.org/xml/package-info">
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
	ATTENTION: If you are trying to install this manually, you should try
	the package manager.  If it will not work for you, please take a look
	at the following for information on this format:
		http://mods.simplemachines.org/docs/manual-install.php
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
 
<!-- This is just a test case, and is not designed to be installed! -->

<package-info xmlns="http://www.simplemachines.org/xml/package-info" xmlns:smf="http://www.simplemachines.org/">
    <id>daniel15:TestCase</id>
    <name>Test Case for Package Parsing utilities</name>
    <version>1.1</version>
    <type>modification</type>
    <install for="1.0 RC2, 1.0, 1.0.1-1.0.99">
		<readme type="inline">[Some message about SMF 1.0 incompatibility]</readme>
    </install>

    <install for="1.1, 1.1.1-1.1.99">
		<readme>readme.txt</readme>
        <code>installScript.php</code>
		
		<require-dir name="shop" destination="$sourcedir" />
        <require-file name="Shop.english.php" destination="$languagedir" />
        <require-file name="ShopAdmin.template.php" destination="$themedir" />
        <require-file name="Shop.template.php" destination="$themedir" />
        
        <create-dir name="test" destination="$boarddir" />
        <move-file name="changelog.txt" from="$boarddir" destination="$sourcedir" />
        
        <modification format="xml" type="file">install_SMF1-1.xml</modification>
        <modification format="xml" type="file">install_SMF1-1_b.xml</modification>
    </install>
	
	<uninstall for="1.1 RC2, 1.1 RC3, 1.1, 1.1.1-1.1.99">
		<modification type="file" reverse="true">install_SMF1-1.xml</modification>
		<code>uninstallScript.php</code>
		<remove-dir name="$sourcedir/shop" />
		<remove-file name="$languagedir/Shop.english.php" />
		<remove-file name="$themedir/ShopAdmin.template.php" />
		<remove-file name="$themedir/Shop.template.php" />
		
		<remove-dir name="$boarddir/test" />
		<remove-file name="$boarddir/test.txt" />
        <move-file name="changelog.txt" from="$sourcedir" destination="$boarddir" />
	</uninstall>
	
	<upgrade from="1.0a"> <!-- for="1.1"-->
		<readme>readme_upgrade_2.txt</readme>
        <code>upgradeScript2.php</code>
        
        <modification format="xml" type="file">upgrade_1-0a.xml</modification>
	</upgrade>
	
	<upgrade from="1.0" for="1.1">
		<readme>readme_upgrade_SMF1.1.txt</readme>
        <code>upgradeScript.php</code>
		
        <require-file name="Shop.template.php" destination="$themedir" />    
        <create-dir name="test" destination="$boarddir" />
        <move-file name="changelog.txt" from="$boarddir" destination="$sourcedir" />
        
        <modification format="xml" type="file">upgrade_1-0_SMF1.1.xml</modification>
	</upgrade>
	
	<upgrade from="1.0" for="1.0">
		<readme>readme_upgrade_SMF1.1.txt</readme>
        <code>upgradeScript.php</code>
		
        <require-file name="Shop.template.php" destination="$themedir" />    
        <create-dir name="test" destination="$boarddir" />
        <move-file name="changelog.txt" from="$boarddir" destination="$sourcedir" />
        
        <modification format="xml" type="file">upgrade_1-0_SMF1.0.xml</modification>
	</upgrade>
	
	<upgrade from="1.0">
		<readme>readme_upgrade.txt</readme>
        <code>upgradeScript2.php</code>
		
        <require-file name="Shop.template.php" destination="$themedir" />    
        <create-dir name="test" destination="$boarddir" />
        <move-file name="changelog.txt" from="$boarddir" destination="$sourcedir" />
        
        <modification format="xml" type="file">upgrade_1-0.xml</modification>
	</upgrade>
	
	<install>
		<readme type="inline">An incompatiblity message. Could also be some install instructions for all other SMF versions.</readme>
		<code>do_something.php</code>
	</install>

</package-info>

<!-- $Id: package-info.xml 94 2007-01-21 06:14:42Z daniel15 $ -->
