Changeset 16930 for release-kits/wirk3
- Timestamp:
- 2008-08-21T11:15:58+12:00 (16 years ago)
- Location:
- release-kits/wirk3
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
release-kits/wirk3/ant-scripts/create-installer.xml
r16776 r16930 17 17 <fileset dir="${wirk3.home}/greenstone3/installer-classes"/> 18 18 <fileset dir="${wirk3.home}/ant-scripts/tasks/orans" includes="RegexSearchReplace.class" /> 19 <fileset dir="${wirk3.home}/ant-scripts/tasks/orans" includes="GetFreePath.class" /> 19 20 </copy> 20 21 </target> -
release-kits/wirk3/installer/build.xml
r16749 r16930 15 15 <!-- custom tasks --> 16 16 <typedef name="rsr" classname="RegexSearchReplace" classpathref="project.classpath"/> 17 <typedef name="getfreepath" classname="GetFreePath" classpathref="project.classpath"/> 17 18 <taskdef name="shortcut" classname="com.orangevolt.tools.ant.Win32ShortcutTask" classpathref="project.classpath"/> 18 19 <taskdef name="winprops" classname="com.orangevolt.tools.ant.Win32PropertiesTask" classpathref="project.classpath"/> … … 26 27 <!-- load windows properties --> 27 28 <winprops/> 29 30 <!-- determine if there is an existing installation in the installDir--> 31 <available file="${installDir}\installation.properties" property="is.overinstall"/> 32 33 <target name="load-previous-props" if="is.overinstall"> 34 <property file="${installDir}\installation.properties"/> 35 </target> 28 36 29 30 <target name="install-core-components"> 37 <target name="install-core-components" depends="load-previous-props"> 31 38 32 39 <!-- create the installation directory --> … … 53 60 <include name="greenstone3-build.xml"/> 54 61 <include name="build.properties"/> 62 <include name="installation.properties"/> 55 63 <include name="gs3-server.bat"/> 56 64 <include name="gs3-setup.bat"/> … … 133 141 <target name="install-start-menu-shortcuts"> 134 142 135 <mkdir dir="${win32.personal.programs_menu}\Greenstone-@version@\Documentation"/> 143 <!-- figure out the start menu path (if not already set from previous installation) --> 144 <getfreepath path="${win32.personal.programs_menu}\Greenstone-@version@" property="startmenu.path"/> 145 146 <mkdir dir="${startmenu.path}\Documentation"/> 136 147 137 148 <shortcut 138 file="${ win32.personal.programs_menu}\Greenstone-@version@\Greenstone3 Server.lnk"149 file="${startmenu.path}\Greenstone3 Server.lnk" 139 150 execute="${installDir}\gs3-server.bat" 140 151 workingDirectory="${installDir}" … … 143 154 144 155 <shortcut 145 file="${ win32.personal.programs_menu}\Greenstone-@version@\Greenstone Librarian Interface (GLI).lnk"156 file="${startmenu.path}\Greenstone Librarian Interface (GLI).lnk" 146 157 execute="${installDir}\gli\gli.bat" 147 158 workingDirectory="${installDir}\gli" … … 150 161 151 162 <shortcut 152 file="${ win32.personal.programs_menu}\Greenstone-@version@\Greenstone Editor for Metadata Sets (GEMS).lnk"163 file="${startmenu.path}\Greenstone Editor for Metadata Sets (GEMS).lnk" 153 164 execute="${installDir}\gli\gems4gs3.bat" 154 165 workingDirectory="${installDir}\gli" 155 166 iconFile="${installDir}\resources\images\gs3.ico" 156 167 iconIndex="0" /> 157 168 158 169 <shortcut 159 file="${ win32.personal.programs_menu}\Greenstone-@version@\Documentation\README.lnk"170 file="${startmenu.path}\Documentation\README.lnk" 160 171 execute="${installDir}\README.txt" /> 161 172 162 173 <shortcut 163 file="${ win32.personal.programs_menu}\Greenstone-@version@\Documentation\Greenstone3 Users' Guide.lnk"174 file="${startmenu.path}\Documentation\Greenstone3 Users' Guide.lnk" 164 175 execute="${installDir}\documentation\manual\manual.pdf" /> 165 176 166 177 <shortcut 167 file="${ win32.personal.programs_menu}\Greenstone-@version@\Documentation\Greenstone2 Users' Guide.lnk"178 file="${startmenu.path}\Documentation\Greenstone2 Users' Guide.lnk" 168 179 execute="${installDir}\documentation\manual\gs2_user_en.pdf" /> 169 180 181 <rsr file="${installDir}\installation.properties" pattern="@startmenu.path@" replacement="${startmenu.path}" winPath="true"/> 170 182 171 183 </target> -
release-kits/wirk3/src/wirk3.cpp
r16775 r16930 44 44 //pass on the arguments 45 45 string a; 46 bool simMode = false; 46 47 for ( int i=0; i < argc; i++ ) { 47 48 a = argv[i]; … … 50 51 //show_help(); 51 52 return 0; 52 53 53 } else if ( a.compare("-cp") == 0) { 54 54 cout << classpath; 55 55 return 0; 56 56 } else if ( a.compare("-sim") == 0) { 57 command = command + " " + a; 58 simMode = true; 57 59 } else { 58 60 command = command + " " + a; 59 61 } 60 62 63 } 64 65 //create directories 66 if ( !simMode ) { 67 system( "IF NOT EXIST installer\\classes MKDIR installer\\classes" ); 61 68 } 62 69
Note:
See TracChangeset
for help on using the changeset viewer.