]> gitweb.fluxo.info Git - semanticscuttle.git/commitdiff
add sourceforge logo to pirum html file
authorcweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>
Sun, 22 Aug 2010 12:45:14 +0000 (12:45 +0000)
committercweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>
Sun, 22 Aug 2010 12:45:14 +0000 (12:45 +0000)
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@721 b3834d28-1941-0410-a4f8-b48e95affb8f

build.xml
html.properties [new file with mode: 0644]

index 3da2c894e2ff69f6c4a41f8d748dc77209c2e90d..1cd70e1e8b3c68630b8ef0ea77a398e9faab187a 100644 (file)
--- a/build.xml
+++ b/build.xml
@@ -7,6 +7,7 @@
     tagging a release, running unit tests etc.
   -->
   <property file="build.properties" />
+  <property file="html.properties" />
 
   <property name="version-m"  value="0.97" />
   <property name="version"    value="0.97.0" />
 
 
 
-  <target name="deploy-sf-pear" depends="check,package"
+  <target name="deploy-sf-pear" depends="check"
    description="Update PEAR channel on sourceforge"
    >
     <available file="${websitedir}"
         2. update channel with pirum update
         3. rsync to sourceforge
     -->
-    <exec
-     command="rsync --include-from=.rsync-include-files --delete -avP -e ssh ${sfuser},${sfproject}@web.sourceforge.net:htdocs/ ."
+    <!--<exec
+     command="rsync - -include-from=.rsync-include-files - -delete -avP -e ssh ${sfuser},${sfproject}@web.sourceforge.net:htdocs/ ."
      dir="${websitedir}"
      escape="false" checkreturn="false"
      passthru="true"
-     />
+     />-->
 
     <exec
      command="pirum add ${websitedir} ${distpkgfile}"
      passthru="true"
      />
+    <!-- fix the generated html -->
+   <!-- yes, we need to generate a 2nd file and move it back -->
+   <copy file="${websitedir}/index.html" tofile="${websitedir}/pirum.html" overwrite="true">
+    <filterchain>
+     <replaceregexp>
+      <!-- make meta links relative -->
+      <regexp
+       pattern="href=&quot;http://semanticscuttle.sourceforge.net/"
+       replace="href=&quot;"
+       />
+      <!-- add sourceforge logo -->
+      <regexp
+       pattern="powered by "
+       replace="powered by ${html.sflogo} and "
+       />
+     </replaceregexp>
+    </filterchain>
+   </copy>
+   <!--<move file="${websitedir}/pirum.html" tofile="${websitedir}/index.html" overwrite="true" />-->
+   <!-- add our custom css -->
+   <append
+    destFile="${websitedir}/pirum.css"
+    file="${websitedir}/pirum-custom.css"
+    />
+
     <!-- rsync always returns code 23 on sourceforge releases, so we
          can't check return values -->
-    <exec
-     command="rsync --include-from=.rsync-include-files -avP -e ssh . ${sfuser},${sfproject}@web.sourceforge.net:htdocs/"
+    <!--<exec
+     command="rsync - -include-from=.rsync-include-files -avP -e ssh . ${sfuser},${sfproject}@web.sourceforge.net:htdocs/"
      dir="${websitedir}"
      escape="false" checkreturn="false"
      passthru="true"
-     />
+     />-->
   </target>
 
 
diff --git a/html.properties b/html.properties
new file mode 100644 (file)
index 0000000..8e25cc4
--- /dev/null
@@ -0,0 +1 @@
+html.sflogo = <a href="http://sourceforge.net/projects/semanticscuttle"><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=211356&amp;type=10" width="80" height="15" alt="Get SemanticScuttle at SourceForge.net. Fast, secure and Free Open Source software downloads" /></a>