Do not crash list view when seeing a fully empty git repository
[phorkie.git] / build.xml
index 261a351a342fd4617b9213ab0c45bfbbc5ea4a07..8237c65bf24ffa20ce540568a06441ac0d6934f2 100644 (file)
--- a/build.xml
+++ b/build.xml
@@ -6,38 +6,13 @@
     tasks around phorkie, like creating a release version,
     tagging a release
   -->
-  <property file="build.properties" />
-
-  <property name="version-m"  value="0.4" />
-  <property name="version"    value="0.4.0" />
-  <property name="stability"  value="alpha" />
+  <property name="version"    value="0.7.0" />
+  <property name="stability"  value="beta" />
   <property name="releasenotes" value="
-Version 0.4.0 - 2014-07-15
+Version 0.7.0 - 2015-11-05
 --------------------------
-* Fix bug #27: Render .json files
-* Fix bug #31: Forked pastes cannot be remote forked
-* Fix bug #33: Do not index login page
-* Fix bug #41: AGPL link broken
-* Fix bug #43: github gist cloning does not work
-* Fix bug #44: Anchors of files with spaces in their name
-* Fix renaming of binary files
-* Implement request #6: Atom feed for new and updated pastes
-* Implement request #7: Track and display remote forks
-* Implement request #21: Send linkbacks when forking remote pastes
-* Implement request #32: Distribute phorkie as .phar file with all dependencies
-* Implement request #34: Store last OpenID in cookie and pre-fill login form
-* Implement request #35: Store author of a paste
-* Implement request #37: Show user icon in navbar and profile page
-* Implement request #42: Single click remote forking with web+fork: url handler
-* Add autoconfiguration for public git clone urls over http
-* Add baseurl setting to make phorkie run in a subdirectory of a domain
-* Add setupcheck page that checks dependencies and other things
-* Add support for file names with directories in pastes
-* Add support for UTF-8 characters in file names
-* Add support for web hooks
-* Add support for forking HTTP and HTTPS git URLs
-* Extract gist titles
-* Make it possible to install dependencies via composer
+* Add support for elasticsearch 2.0
+* Add text file detection for unknown file extensions
 " />
   <property name="libdir"      value="${phing.dir}/lib"/>
 
@@ -49,9 +24,6 @@ Version 0.4.0 - 2014-07-15
   <property name="distfile"    value="dist/${zipfile}" />
   <property name="distpkgfile" value="dist/pear/${pkgfile}" />
 
-  <property name="sfproject"   value="phorkie" />
-  <property name="sffilepath"  value="p/ph/phorkie/" />
-
   <fileset id="fs.zip" dir=".">
    <include name="data/**"/>
    <include name="scripts/**"/>
@@ -65,6 +37,7 @@ Version 0.4.0 - 2014-07-15
 
    <exclude name="**/.git/"/>
    <exclude name="**/.gitignore/"/>
+   <exclude name="data/cache/**"/>
    <exclude name="data/config.php"/>
    <exclude name="www/**/.phar"/>
    <exclude name="www/repos"/>
@@ -80,9 +53,10 @@ Version 0.4.0 - 2014-07-15
    <include name="ChangeLog"/>
    <include name="README.rst"/>
 
-   <exclude name="data/config.php"/>
    <exclude name="**/.git/"/>
    <exclude name="**/.gitignore/"/>
+   <exclude name="data/cache/**"/>
+   <exclude name="data/config.php"/>
    <exclude name="www/**/.phar"/>
    <exclude name="www/repos"/>
   </fileset>
@@ -326,7 +300,7 @@ Version 0.4.0 - 2014-07-15
   </target>
 
 
-  <target name="build-docs" description="render documentation">
+  <target name="docs" description="render documentation">
    <rST format="html" uptodate="true">
     <fileset refid="fs.doc"/>
     <mapper type="regexp" from="^(.+?).rst$" to="dist/docs/\1.html"/>
@@ -338,39 +312,13 @@ Version 0.4.0 - 2014-07-15
   </target>
 
 
-  <target name="release" depends="check,zip,pear,deploy-sf"
-   description="Release the version on sourceforge"
+  <target name="release" depends="check,zip,pear"
+   description="Package the new version"
    >
    <!-- meta-target -->
   </target>
 
 
-  <!--
-  /home/frs/project/p/ph/phorkie/phorkie/v0.1/
-  /home/frs/project/p/ph/phorkie/phorkie/v0.1/phorkie-v0.1.0.zip
-  /home/frs/project/p/ph/phorkie/phorkie/v0.1/phorkie-v0.1.1.zip
-  https://sourceforge.net/apps/trac/sourceforge/wiki/Release%20files%20for%20download
-  -->
-  <target name="deploy-sf" depends="check,zip,phar"
-   description="Upload release to sourceforge"
-   >
-    <delete dir="dist/deploy-sf" /><!-- make empty -->
-    <mkdir dir="dist/deploy-sf" />
-    <mkdir dir="dist/deploy-sf/v${version-m}" />
-    <copy file="${distfile}" tofile="dist/deploy-sf/v${version-m}/${zipfile}"/>
-    <copy file="${pharpath}" tofile="dist/deploy-sf/v${version-m}/${pharfile}"/>
-    <!-- test
-    <exec command="rsync -av dist/deploy-sf/ /tmp/test/" escape="false" />
-    -->
-    <exec
-     command="rsync -av -e ssh dist/deploy-sf/ ${sfuser},${sfproject}@frs.sourceforge.net:/home/frs/project/${sffilepath}/${sfproject}/"
-     escape="false" checkreturn="false"
-     />
-    <!-- rsync always returns code 23 on sourceforge releases, so we
-         can't check return values -->
-  </target>
-
-
   <target name="preparedirs">
     <mkdir dir="dist" />
   </target>
@@ -379,9 +327,6 @@ Version 0.4.0 - 2014-07-15
    description="Check variables"
    >
     <fail unless="version" message="Version not defined!" />
-    <fail unless="sfuser" message="Sourceforge username not defined!" />
-    <fail unless="sfproject" message="Sourceforge project name not defined!" />
-    <fail unless="sffilepath" message="Sourceforge project file path not defined!" />
   </target>
 
 </project>