Add version tag to Horde_Kolab_Format. Add kolab-format script.
authorGunnar Wrobel <p@rdus.de>
Thu, 9 Dec 2010 10:33:05 +0000 (11:33 +0100)
committerGunnar Wrobel <p@rdus.de>
Mon, 13 Dec 2010 10:17:15 +0000 (11:17 +0100)
framework/Kolab_Format/bin/kolab-format [new file with mode: 0755]
framework/Kolab_Format/lib/Horde/Kolab/Format.php
framework/Kolab_Format/package.xml

diff --git a/framework/Kolab_Format/bin/kolab-format b/framework/Kolab_Format/bin/kolab-format
new file mode 100755 (executable)
index 0000000..c0cee84
--- /dev/null
@@ -0,0 +1,7 @@
+#!/usr/bin/env php
+<?php
+if (strpos('@php_dir@', '@php_dir') === 0) {
+    set_include_path(dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'lib' . PATH_SEPARATOR . get_include_path());
+}
+
+
index 7cfb723..64ace4e 100644 (file)
@@ -30,6 +30,9 @@
  */
 interface Horde_Kolab_Format
 {
+    /** The package version */
+    const VERSION = '@version@';
+
     /**
      * Return the name of the resulting document.
      *
index b5661d0..66c9b48 100644 (file)
@@ -30,7 +30,7 @@
   <active>yes</active>
  </lead>
  <date>2010-12-09</date>
- <time>10:18:38</time>
+ <time>11:19:50</time>
  <version>
   <release>1.1.0</release>
   <api>1.1.0</api>
  </notes>
  <contents>
   <dir baseinstalldir="/" name="/">
+   <dir name="bin">
+    <file name="kolab-format" role="script">
+     <tasks:replace from="@php_dir@" to="php_dir" type="pear-config" />
+    </file>
+   </dir> <!-- /bin -->
    <dir name="doc">
     <dir name="Horde">
      <dir name="Kolab">
@@ -91,7 +96,9 @@
        </file>
        <file name="Xml.php" role="php" />
       </dir> <!-- /lib/Horde/Kolab/Format -->
-      <file name="Format.php" role="php" />
+      <file name="Format.php" role="php">
+       <tasks:replace from="@version@" to="version" type="package-info" />
+      </file>
      </dir> <!-- /lib/Horde/Kolab -->
     </dir> <!-- /lib/Horde -->
    </dir> <!-- /lib -->
  </dependencies>
  <phprelease>
   <filelist>
+   <install as="kolab-format" name="bin/kolab-format" />
    <install as="Horde/Kolab/Format/usage.txt" name="doc/Horde/Kolab/Format/usage.txt" />
    <install as="Horde/Kolab/Format/event.php" name="examples/Horde/Kolab/Format/event.php" />
    <install as="Horde/Kolab/Format/new_type.php" name="examples/Horde/Kolab/Format/new_type.php" />