greenstone.org greenstone wiki greenstone trac planet greenstone

Changeset 17814

Show
Ignore:
Timestamp:
2008-11-11 15:18:40 (2 months ago)
Author:
oranfry
Message:

prepare source releases on each os

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • release-kits/lirk3/ant-scripts/create-components.xml

    r17786 r17814  
    150150        </target> 
    151151 
    152  
    153         <!-- sourcecode-release --> 
    154         <target name="prepare-source-release"> 
    155                 <delete dir="components/tmp/source-release"/> 
    156                 <mkdir dir="components/tmp/source-release"/> 
    157  
    158                 <copy todir="components/tmp/source-release" overwrite="true"> 
    159                         <fileset dir="distribution/source"/> 
    160                 </copy> 
    161                 <zip destfile="components/source-release.comp" basedir="components/tmp/source-release" compress="false"/> 
    162         </target> 
    163          
    164152        <target name="compress-source-release"> 
    165153                <sevenzip task="encode" input="components/source-release.comp" output="components/source-release.lzma" dictionnary="26"/> 
  • release-kits/lirk3/installer/build.xml

    r17786 r17814  
    6464                <copy file="${installDir}/resources/java/log4j.properties.in" tofile="${installDir}/web/WEB-INF/classes/log4j.properties" overwrite="true"/> 
    6565                <rsr file="${installDir}/web/WEB-INF/classes/log4j.properties" pattern="(.*)@gsdl3home@(.*)" replacement="$1${installDir}/web$2" /> 
     66 
     67                <echo>Create usage.txt</echo> 
     68                <echo file="${installDir}/gs2build/etc/usage.txt"></echo> 
    6669 
    6770                <echo>Creating installation properties file</echo> 
     
    132135                <delete file="source-release.comp"/> 
    133136 
     137                <echo>Setting Binaries to Executable</echo> 
     138                <chmod dir="${installDir}" includes="*.sh,**/configure" perm="775"/> 
     139                <chmod dir="${installDir}/bin/script" includes="*" perm="775"/> 
     140                <chmod dir="${installDir}/bin" includes="*" perm="775"/> 
     141                <chmod dir="${installDir}/gs2build/bin/linux" includes="*" perm="775"/> 
     142                <chmod dir="${installDir}/gs2build/bin/script" includes="**/*" perm="775"/> 
     143                <chmod dir="${installDir}/gli" includes="*.sh" perm="775"/> 
     144                <echo/> 
     145 
    134146                <echo>Setting up global properties</echo> 
    135147                <copy file="${installDir}/resources/java/global.properties.in" tofile="${installDir}/web/WEB-INF/classes/global.properties" overwrite="true"/> 
     
    142154                <rsr file="${installDir}/web/WEB-INF/classes/log4j.properties" pattern="(.*)@gsdl3home@(.*)" replacement="$1${installDir}/web$2" /> 
    143155 
     156                <echo>Create usage.txt</echo> 
     157                <echo file="${installDir}/gs2build/etc/usage.txt"></echo> 
     158 
    144159                <echo>Creating installation properties file</echo> 
    145160                <echo file="${installDir}/installation.properties">#this file is just a placeholder for now</echo> 
  • release-kits/mark2/ant-scripts/create-components.xml

    r17786 r17814  
    1616                <antcall target="prepare-ghostscript-component" /> 
    1717 
    18                 <!--<antcall target="prepare-sourcecode-component" />--> 
     18                <antcall target="prepare-sourcecode-component" /> 
     19 
     20                <antcall target="prepare-source-release" /> 
    1921        </target> 
    2022         
     
    2527 
    2628                <!--<antcall target="compress-sourcecode-component" />--> 
     29 
     30                <antcall target="compress-source-release" /> 
    2731        </target> 
    2832 
     
    129133        </target> 
    130134 
     135        <target name="compress-source-release"> 
     136                <sevenzip task="encode" input="components/source-release.comp" output="components/source-release.lzma" dictionnary="26"/> 
     137        </target> 
     138 
     139 
    131140</project> 
  • release-kits/mark2/ant-scripts/create-distribution.xml

    r17786 r17814  
    1010                <antcall target="tweak-files" /> 
    1111                <antcall target="remove-unneeded-files-1" /> 
     12 
     13                <antcall target="copy-web-to-source" /> <!-- from init --> 
     14 
    1215                <antcall target="drop-in-binaries" /> 
    1316                <antcall target="drop-in-demo-collection" /> 
  • release-kits/mark2/installer/build.xml

    r17786 r17814  
    7474                <delete file="${installDir}/resources/*.png"/> 
    7575 
     76                <echo>Create usage.txt</echo> 
     77                <echo file="${installDir}/etc/usage.txt"></echo> 
     78 
    7679                <echo>Creating installation properties file</echo> 
    7780                <echo file="${installDir}/etc/installation.properties">#this file is just a placeholder for now</echo> 
  • release-kits/mark3/ant-scripts/create-components.xml

    r17786 r17814  
    1818                <antcall target="prepare-ghostscript-component" /> 
    1919 
    20                 <!--<antcall target="prepare-sourcecode-component" />--> 
     20                <antcall target="prepare-sourcecode-component" /> 
     21 
     22                <antcall target="prepare-source-release" /> 
    2123        </target> 
    2224 
     
    2931 
    3032                <!--<antcall target="compress-sourcecode-component" />--> 
     33 
     34                <antcall target="compress-source-release" /> 
    3135        </target> 
    3236 
     
    173177        </target> 
    174178 
     179        <target name="compress-source-release"> 
     180                <sevenzip task="encode" input="components/source-release.comp" output="components/source-release.lzma" dictionnary="26"/> 
     181        </target> 
     182 
    175183</project> 
  • release-kits/mark3/ant-scripts/create-distribution.xml

    r17786 r17814  
    99                <antcall target="gli-set-version-numbers"><param name="glibasedir" value="${basedir}/distribution/greenstone3/gli"/></antcall> 
    1010                <antcall target="insert-user-manual"/> 
     11 
     12                <antcall target="copy-web-to-source-greenstone3" /> <!-- from gs3-targets --> 
    1113 
    1214                <ant target="create-distribution-1" antfile="${mark3.home}/ant-scripts/operations-on-gs3home.xml" dir="distribution/greenstone3" inheritAll="false"> 
  • release-kits/mark3/installer/build.xml

    r17786 r17814  
    5959                <copy file="${installDir}/resources/java/log4j.properties.in" tofile="${installDir}/web/WEB-INF/classes/log4j.properties" overwrite="true"/> 
    6060                <rsr file="${installDir}/web/WEB-INF/classes/log4j.properties" pattern="(.*)@gsdl3home@(.*)" replacement="$1${installDir}/web$2" /> 
     61 
     62                <echo>Create usage.txt</echo> 
     63                <echo file="${installDir}/gs2build/etc/usage.txt"></echo> 
    6164 
    6265                <echo>Creating installation properties file</echo> 
  • release-kits/wirk2/ant-scripts/create-components.xml

    r17786 r17814  
    1515                <antcall target="prepare-imagemagick-component" /> 
    1616                <antcall target="prepare-ghostscript-component" /> 
    17                 <!--<antcall target="prepare-sourcecode-component" />--> 
     17 
     18                <antcall target="prepare-sourcecode-component" /> 
     19 
     20                <antcall target="prepare-source-release" /> 
    1821        </target> 
    1922         
     
    2225                <antcall target="compress-imagemagick-component" /> 
    2326                <antcall target="compress-ghostscript-component" /> 
     27 
    2428                <!--<antcall target="compress-sourcecode-component" />--> 
     29 
     30                <antcall target="compress-source-release" /> 
     31 
    2532        </target> 
    2633         
     
    123130        </target> 
    124131 
     132        <target name="compress-source-release"> 
     133                <exec executable="7z.exe" dir="components"><arg line="a -t7z -mx=9 source-release.lzma source-release.comp"/></exec> 
     134        </target> 
     135 
     136 
    125137</project> 
  • release-kits/wirk2/ant-scripts/create-distribution.xml

    r17786 r17814  
    1010                <antcall target="tweak-files" /> 
    1111                <antcall target="remove-unneeded-files-1" /> 
     12 
     13                <antcall target="copy-web-to-source" /> <!-- from init --> 
    1214 
    1315                <antcall target="drop-in-binaries" /> 
  • release-kits/wirk2/installer/build.xml

    r17786 r17814  
    9999                </rsr> 
    100100                <rsr file="${installDir}/gsdlsite.cfg" pattern="@gsdlhome@" replacement="${installDir}"/> 
     101 
     102                <echo>Create usage.txt</echo> 
     103                <echo file="${installDir}/etc/usage.txt"></echo> 
    101104                                 
    102105                <echo message="Creating installation properties file"/> 
     
    138141                        iconFile="${installDir}\images\icon.ico" 
    139142                        iconIndex="0" /> 
     143 
    140144                <shortcut 
    141145                        file="${startmenu.path}\Greenstone Librarian Interface (GLI).lnk" 
     
    144148                        iconFile="${installDir}\images\icon.ico" 
    145149                        iconIndex="0" /> 
     150 
    146151                <shortcut 
    147152                        file="${startmenu.path}\Greenstone Editor for Metadata Sets (GEMS).lnk" 
     
    150155                        iconFile="${installDir}\images\icon.ico" 
    151156                        iconIndex="0" /> 
     157 
    152158                <shortcut 
    153159                        file="${startmenu.path}\Uninstall.lnk" 
     
    156162                        iconFile="${installDir}\images\icon.ico" 
    157163                        iconIndex="0" /> 
     164 
    158165                <shortcut 
    159166                        file="${startmenu.path}\Documentation\READMEen.lnk" 
    160167                        execute="${installDir}\READMEen.txt" /> 
     168 
    161169                <shortcut 
    162170                        file="${startmenu.path}\Documentation\READMEes.lnk" 
    163171                        execute="${installDir}\READMEes.txt" /> 
     172 
    164173                <shortcut 
    165174                        file="${startmenu.path}\Documentation\READMEar.lnk" 
    166175                        execute="${installDir}\READMEar.txt" /> 
     176 
    167177                <shortcut 
    168178                        file="${startmenu.path}\Documentation\READMEfr.lnk" 
    169179                        execute="${installDir}\READMEfr.txt" /> 
     180 
    170181                <shortcut 
    171182                        file="${startmenu.path}\Documentation\READMEru.lnk" 
    172183                        execute="${installDir}\READMEru.txt" /> 
     184 
    173185        </target> 
    174186 
  • release-kits/wirk3/ant-scripts/create-components.xml

    r17786 r17814  
    1717                <antcall target="prepare-ant-component" /> 
    1818                <antcall target="prepare-tomcat-component" /> 
    19                 <!--<antcall target="prepare-sourcecode-component" />--> 
     19 
     20                <antcall target="prepare-sourcecode-component" /> 
     21 
     22                <antcall target="prepare-source-release" /> 
    2023        </target> 
    2124         
     
    2629                <antcall target="compress-ant-component" /> 
    2730                <antcall target="compress-tomcat-component" /> 
     31 
    2832                <!--<antcall target="compress-sourcecode-component" />--> 
     33 
     34                <antcall target="compress-source-release" /> 
     35 
    2936        </target> 
    3037         
     
    165172                <exec executable="7z.exe" dir="components"><arg line="a -t7z -mx=9 tomcat.lzma tomcat.comp"/></exec> 
    166173        </target>        
     174 
     175        <target name="compress-source-release"> 
     176                <exec executable="7z.exe" dir="components"><arg line="a -t7z -mx=9 source-release.lzma source-release.comp"/></exec> 
     177        </target> 
    167178         
    168179</project> 
  • release-kits/wirk3/ant-scripts/create-distribution.xml

    r17786 r17814  
    99                <antcall target="gli-set-version-numbers"><param name="glibasedir" value="${basedir}/distribution/greenstone3/gli" /></antcall> 
    1010                <antcall target="insert-user-manual"/> 
     11 
     12                <antcall target="copy-web-to-source-greenstone3" /> <!-- from gs3-targets --> 
    1113 
    1214                <ant target="create-distribution-1" antfile="${wirk3.home}/ant-scripts/operations-on-gs3home.xml" dir="distribution/greenstone3" inheritAll="false"> 
  • release-kits/wirk3/installer/build.xml

    r17786 r17814  
    101101                <rsr file="${installDir}/web/WEB-INF/classes/log4j.properties" pattern="@gsdl3home@" replacement="${installDir.unix}/web"/> 
    102102 
     103                <echo>Create usage.txt</echo> 
     104                <echo file="${installDir}/gs2build/etc/usage.txt"></echo> 
     105 
    103106                <echo message="Creating installation properties file"/> 
    104107                <echo file="${installDir}\installation.properties">installed.startmenu.path:${startmenu.path.unix}</echo>