Changeset 10195
- Timestamp:
- 2005-06-30T09:48:37+12:00 (19 years ago)
- Location:
- trunk/gsdl3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/README.txt
r10137 r10195 57 57 1. Install for the first time: 58 58 cvs co gsdl3 59 cd gsdl3 59 60 ant prepare install 60 61 … … 62 63 [online] 63 64 cvs co gsdl3 65 cd gsdl3 64 66 ant prepare 65 67 [offline] 66 68 ant install 67 69 68 3. Updating your Greenstone installation from cvs: 70 3. Install for the first time, cvs done outside of Ant (if you have problems running cvs commands from Ant): 71 cvs co [-P] gsdl3 72 cd gsdl3 73 cvs update -P (run this if you haven't done the checkout with the -P option) 74 cd packages 75 cvs co mgpp 76 cd .. 77 [if you want greenstone 2 building: 78 cvs co -P gli 79 cvs co -P gs2build 80 ] 81 [if you are on windows 82 cvs co winbin 83 ] 84 ant -Dnocvs.mode=yes prepare install (prepare needs to be online, install can be done offline) 85 86 4. Updating your Greenstone installation from cvs (and reconfigure/recompile): 87 cd gsdl3 69 88 ant update 70 89 71 4. Updating your Greenstone installation, offline: 90 5. Updating your Greenstone installation, offline: 91 cd gsdl3 72 92 [online] 73 93 ant cvsupdate 74 94 [offline] 75 ant -Doffline.mode=yes update 95 ant -Dnocvs.mode=yes update 96 97 6. Updating your Greenstone installation, cvs outside of Ant: 98 cd gsdl3 99 cvs update -l 100 cvs update -dP bin comms docs lib resources src winutil packages 101 cd web (or the path-to-tomcat/webapps/gsdl3 if have installed greenstone as a webapp in Tomcat, see Using External Tomcat section) 102 cvs update -dP 103 cd gsdl3 104 [ if you have greenstone 2 building: 105 cvs update -dP gli 106 cvs checkout -P gs2build 107 Note that the gs2build one uses checkout not update. 108 ] 109 ant -Dnocvs.mode=yes update 76 110 77 111 The main targets for installation/update are: … … 197 231 Once all these changes have been made, you will need to restart the Tomcat server for them to take effect. 198 232 199 200 201 233 Notes for Mac OS 234 ------------------ 235 236 Set JAVA_HOME to be /Library/Java/Home -
trunk/gsdl3/build.xml
r10189 r10195 81 81 <property name="catalina.home" value="${basedir}/comms/jakarta/tomcat"/> 82 82 83 <property name="os.linux" value="Linux"/> <!-- mac??-->83 <property name="os.linux" value="Linux"/> 84 84 <property name="os.mac" value="Mac OS X"/> 85 85 <property name="os.windows" value="Windows 95,Windows 98,Windows 2000,Windows XP,Windows NT,Windows ME"/> <!-- check this!!!--> 86 86 87 <condition property="current.os.islinux"> 87 <!-- this is true for linux and macs --> 88 <condition property="current.os.isunix"> 88 89 <os family="unix"/> 89 90 </condition> … … 190 191 <target name="test-setup"> 191 192 <echo>ant java version=${ant.java.version}</echo> 192 <echo>is linux : ${current.os.is linux}</echo>193 <echo>is linux : ${current.os.isunixx}</echo> 193 194 <echo>is windows : ${current.os.iswindows}</echo> 194 195 </target> … … 196 197 197 198 <!-- add comments about using xxx-core, xxx-packages if only want certain parts?? --> 199 200 <target name="prepare" depends="accept-properties,init,prepare-core,prepare-packages,prepare-gs2building,prepare-tomcat,prepare-axis,prepare-mysql,prepare-web" 201 description="Use this when you first checkout the code: 'ant prepare install'. This will do some additional cvs checkouts and downloads, so you need to be online to run this."/> 198 202 199 203 <target name="install" depends="init,configure,configure-c++,compile,deploy-localsite" 200 204 description="Install Greenstone 3. Use this when you first checkout the code: 'ant prepare install'."/> 201 202 <target name="prepare" depends="accept-properties,init,prepare-core,prepare-packages,prepare-gs2building,prepare-tomcat,prepare-axis,prepare-mysql,prepare-web"203 description="Use this when you first checkout the code: 'ant prepare install'. This will do some additional cvs checkouts and downloads, so you need to be online to run this."/>204 205 205 206 <target name="cvsupdate" depends="init,cvsupdate-packages,cvsupdate-core,cvsupdate-gs2building,cvsupdate-web" … … 409 410 </target> 410 411 411 <target name="cvsupdate-web" unless=" offline.mode">412 <target name="cvsupdate-web" unless="nocvs.mode"> 412 413 <cvs command="update -dP" dest="${web.home}"/> 413 414 </target> … … 489 490 <property name="catalina.opts" value="-Djava.util.prefs.syncInterval=2000000 -DGSDL3HOME=$GSDL3HOME -DGSDLOS=$GSDLOS -DPATH=$PATH -Xmx400M"/> 490 491 <exec executable="${catalina.home}/bin/startup.sh" os="${os.linux},${os.mac}" dir="${catalina.home}/bin" spawn="false"> 491 <!--<env key="GSDLOS" value="linux"/> -->492 <!--<env key="GSDLOS" value="linux"/> do we need this?? --> 492 493 <env key="GSDL3HOME" value="${basedir}"/> 493 494 <env key="PATH" path="${tomcat.path}"/> … … 496 497 <env key="CLASSPATH" path="${tomcat.classpath}"/> 497 498 <env key="LD_LIBRARY_PATH" path="${env.LD_LIBRARY_PATH}:${lib.jni}:${mysql.home}/lib/mysql"/> 498 <env key="DYLD_LIBRARY_PATH" path="${env.DYLD_LIBRARY_PATH}:${lib.jni}:${mysql.home}/lib/mysql"/> 499 <env key="DYLD_LIBRARY_PATH" path="${env.DYLD_LIBRARY_PATH}:${lib.jni}:${mysql.home}/lib/mysql"/> <!-- for mac--> 499 500 </exec> 500 501 <exec executable="${catalina.home}/bin/startup.bat" os="${os.windows}" dir="${catalina.home}/bin" spawn="true"> … … 554 555 <and> 555 556 <isset property="mysql.islocal"/> 556 <isset property="current.os.is linux"/>557 <isset property="current.os.isunixx"/> 557 558 </and> 558 559 </condition> … … 792 793 <!-- core targets refer to the core gsdl3 java src --> 793 794 794 <target name="prepare-core" >795 <target name="prepare-core" unless="nocvs.mode"> 795 796 <!-- just get rid of empty directories--> 796 797 <cvs command="update -P"/> … … 802 803 description="Update only the Greenstone core" /> 803 804 804 <target name="cvsupdate-core" unless=" offline.mode">805 <target name="cvsupdate-core" unless="nocvs.mode"> 805 806 <cvs command="update -l"/> 806 807 <cvs command="update -dP bin comms dist-resources docs lib resources src winutil"/> … … 871 872 <!-- need to download precompiled binaries for mg and mgpp --> 872 873 </target> 874 873 875 <target name="prepare-mgpp" depends="check-cvsroot,init" unless="mgpp.present"> 874 876 <cvs command="checkout -P" package="mgpp" dest="${basedir}/packages/"/> … … 878 880 description="Update only the packages"/> 879 881 880 <target name="cvsupdate-packages" unless=" offline.mode">882 <target name="cvsupdate-packages" unless="nocvs.mode"> 881 883 <cvs command="update -dP" dest="${packages.home}"/> 882 884 </target> … … 1005 1007 1006 1008 <target name="update-gs2building" if="gsdl2.islocal" 1007 depends="init,cvsupdate-gs2building, configure-gs2building,clean-gs2building,compile-gs2building"1009 depends="init,cvsupdate-gs2building,rename-gs2build-files,configure-gs2building,clean-gs2building,compile-gs2building" 1008 1010 description="Update only the Greenstone 2 building components"/> 1009 1011 1010 <target name="cvsupdate-gs2building" if="gsdl2.islocal" depends="init" unless=" offline.mode">1012 <target name="cvsupdate-gs2building" if="gsdl2.islocal" depends="init" unless="nocvs.mode"> 1011 1013 <cvs command="update -dP" dest="${gli.home}"/> 1012 1014 <!-- Note: can't do a -d update here cos it will get all of gsdl 1013 1015 also, an update doesn't get new files, so we do a checkout instead. --> 1014 1016 <cvs command="co gs2build" dest="${basedir}"/> 1015 <!-- rename the .gs2build files - we may have gotten changes to the main1016 gsdl versions - make sure they are set back to the gs2build versions -->1017 <antcall target="rename-gs2build-files"/>1018 1017 </target> 1019 1018 1020 1019 <target name="prepare-gs2building" depends="init,prepare-gs2build,prepare-gli" if="gsdl2.islocal"> 1021 <echo>checking out gs2 building stuff</echo> 1022 </target> 1023 1024 <target name="prepare-gs2build" depends="check-cvsroot,init" if="gsdl2.islocal" unless="gs2build.present"> 1020 </target> 1021 1022 <target name="checkout-gs2build" depends="check-cvsroot,init" unless="nocvs.mode"> 1025 1023 <echo>checking out gs2build</echo> 1026 1024 <cvs command="checkout -P" package="gs2build"/> 1027 1025 </target> 1026 1027 <target name="prepare-gs2build" depends="init" if="gsdl2.islocal" unless="gs2build.present"> 1028 <antcall target="checkout-gs2build"/> 1028 1029 <!-- rename the .gs2build files --> 1029 1030 <antcall target="rename-gs2build-files"/> … … 1032 1033 </target> 1033 1034 1034 <target name="get-windows-binaries" depends="init" if="current.os.iswindows"> 1035 <cvs command="checkout -P" package="winbin"/> 1036 <copy todir="${basedir}/bin"> 1037 <fileset dir="${basedir}/winbin/bin" includes="mg*.exe"/> 1038 </copy> 1035 <target name="checkout-winbin" depends="init" if="current.os.iswindows" 1036 unless="nocvs.mode"> 1037 <cvs command="checkout -P" package="winbin"/> 1038 </target> 1039 1040 <target name="get-windows-binaries" depends="init,checkout-winbin" if="current.os.iswindows"> 1041 <copy todir="${basedir}/bin"> 1042 <fileset dir="${basedir}/winbin/bin" includes="mg*.exe"/> 1043 </copy> 1039 1044 <move todir="${gs2build.home}/bin/windows" failonerror="false"> 1040 1045 <fileset dir="${basedir}/winbin/bin"/> … … 1042 1047 <delete dir="${basedir}/winbin"/> 1043 1048 </target> 1049 1044 1050 <target name="unzip-windows-packages" depends="init"> 1045 1051 <unzip src="${gs2build.home}/packages/windows/gdbm/gdbm.zip" … … 1051 1057 </target> 1052 1058 1053 <target name="rename-gs2build-files" depends="rename-gs2build-files- linux,rename-gs2build-files-windows"/>1059 <target name="rename-gs2build-files" depends="rename-gs2build-files-unix,rename-gs2build-files-windows"/> 1054 1060 1055 1061 <target name="rename-gs2build-files-windows" if="current.os.iswindows"> … … 1063 1069 </copy> 1064 1070 </target> 1065 <target name="rename-gs2build-files- linux" if="current.os.islinux">1071 <target name="rename-gs2build-files-unix" if="current.os.isunix"> 1066 1072 <property name="gs2build-extra.home" value="${gs2build.home}/gs2build-extra"/> 1067 1073 <copy file="${gs2build-extra.home}/configure" tofile="${gs2build.home}/configure"/> … … 1082 1088 <target name="configure-gs2building" depends="init" if="gsdl2.islocal" 1083 1089 description="Configure only the Greenstone 2 building components"> 1084 <exec executable="${gs2build.home}/configure" os="${os.linux} "1090 <exec executable="${gs2build.home}/configure" os="${os.linux},${os.mac}" 1085 1091 dir="${gs2build.home}"> 1086 1092 <arg value="--prefix=${gs2build.home}"/> … … 1093 1099 <property name="gli.home" value="${basedir}/gli"/> 1094 1100 <!-- linux --> 1095 <exec executable="clean.sh" os="${os.linux} " dir="${gli.home}"1101 <exec executable="clean.sh" os="${os.linux},${os.mac}" dir="${gli.home}" 1096 1102 resolveExecutable="true"/> 1097 1103 <!-- windows --> … … 1100 1106 <!-- gs2build --> 1101 1107 <!--linux: --> 1102 <exec executable="make" os="${os.linux} " dir="${gs2build.home}">1108 <exec executable="make" os="${os.linux},${os.mac}" dir="${gs2build.home}"> 1103 1109 <arg value="clean"/> 1104 1110 </exec> … … 1122 1128 <property name="gli.home" value="${basedir}/gli"/> 1123 1129 <!-- linux --> 1124 <exec executable="makegli.sh" os="${os.linux} " dir="${gli.home}"1130 <exec executable="makegli.sh" os="${os.linux},${os.mac}" dir="${gli.home}" 1125 1131 resolveExecutable="true"/> 1126 1132 <!-- windows --> … … 1129 1135 <!-- gs2build --> 1130 1136 <!--linux: make, make install --> 1131 <exec executable="make" os="${os.linux} " dir="${gs2build.home}">1132 </exec> 1133 <exec executable="make" os="${os.linux} " dir="${gs2build.home}">1137 <exec executable="make" os="${os.linux},${os.mac}" dir="${gs2build.home}"> 1138 </exec> 1139 <exec executable="make" os="${os.linux},${os.mac}" dir="${gs2build.home}"> 1134 1140 <arg value="install"/> 1135 1141 </exec> … … 1149 1155 1150 1156 <target name="gli-local" depends="init" if="gsdl2.islocal"> 1151 <exec executable="${basedir}/gli/gli4gs3.sh" os="${os.linux} " dir="${basedir}/gli" spawn="true">1157 <exec executable="${basedir}/gli/gli4gs3.sh" os="${os.linux},${os.mac}" dir="${basedir}/gli" spawn="true"> 1152 1158 <env key="gsdl3path" path="${basedir}"/> 1153 1159 <env key="gsdlpath" path="${basedir}/gs2build"/> … … 1162 1168 1163 1169 <target name="gli-external" depends="init" unless="gsdl2.islocal"> 1164 <exec executable="${gsdl2.installed.path}/gli/gli4gs3.sh" os="${os.linux} " dir="${gsdl2.installed.path}/gli" spawn="true">1170 <exec executable="${gsdl2.installed.path}/gli/gli4gs3.sh" os="${os.linux},${os.mac}" dir="${gsdl2.installed.path}/gli" spawn="true"> 1165 1171 <env key="gsdl3path" path="${basedir}"/> 1166 1172 <env key="gsdlpath" path="${gsdl2.installed.path}"/> … … 1171 1177 </exec> 1172 1178 <echo>Running GLI from Ant means that you don't get to see any of the terminal output. If you have problems with GLI and want to see the output, please run the following in a terminal/command prompt: 1173 (Linux 1179 (Linux/Mac OS X / Windows) 1174 1180 in gsdl3 directory: source gs3-setup.sh / gs3-setup 1175 1181 in gsdl directory: source setup.bash / setup
Note:
See TracChangeset
for help on using the changeset viewer.