Changeset 2334
- Timestamp:
- 2001-04-23 16:25:44 (8 years ago)
- Files:
-
- trunk/gsdl/Install.sh (modified) (2 diffs)
- trunk/gsdl/bin/script/create_distributions.pl (modified) (4 diffs)
- trunk/gsdl/bin/script/exportcol.pl (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/gsdl/Install.sh
r2325 r2334 94 94 if [ "$gsdlos" = "linux" ]; then 95 95 msg="${msg}--A standard linux binary installation requires approximately 96 30Mb of free disk space (not including additional collections).96 50Mb of free disk space (not including additional collections). 97 97 " 98 98 fi 99 99 msg="${msg}--Compiling Greenstone from source code requires approximately 100 1 35Mb of free disk space (not including additional collections).100 155Mb of free disk space (not including additional collections). 101 101 --Optional Greenstone demonstration collections may require up 102 102 to 200Mb of free disk space (you'll be told the size of … … 205 205 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD" 206 206 $cmd_cpr "${cd_dir}/gsdl/"* "$gsdlhome" 207 208 # copy across those parts of bin/windows that are required by exportcol.pl 209 $net16dir="${cd_dir}/bin/windows/net16" 210 $net32dir="${cd_dir}/bin/windows/net32" 211 $netscapedir="${cd_dir}/bin/windows/netscape" 212 $netwin32s="${cd_dir}/bin/windows/Win32s" 213 if [ ! -d "${gsdlhome}/bin/windows" ]; then 214 $msg="--> Install.sh: [$cmd_mkdir \"${gsdlhome}/bin/windows\"]"; 215 echo "$msg" 216 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD" 217 $cmd_mkdir "${gsdlhome}/bin/windows" 218 fi 219 if [ -d "$net16dir" ]; then 220 msg="--> Install.sh [$cmd_cpr \"${net16dir}\" \"${gsdlhome}/bin/windows\"]" 221 echo "$msg" 222 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD" 223 $cmd_cpr "$net16dir" "${gsdlhome}/bin/windows" 224 fi 225 if [ -d "$net32dir" ]; then 226 msg="--> Install.sh [$cmd_cpr \"${net32dir}\" \"${gsdlhome}/bin/windows\"]" 227 echo "$msg" 228 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD" 229 $cmd_cpr "$net32dir" "${gsdlhome}/bin/windows" 230 fi 231 if [ -d "$netscapedir" ]; then 232 msg="--> Install.sh [$cmd_cpr \"${netscapedir}\" \"${gsdlhome}/bin/windows\"]" 233 echo "$msg" 234 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD" 235 $cmd_cpr "$netscapedir" "${gsdlhome}/bin/windows" 236 fi 237 if [ -d "$win32sdir" ]; then 238 msg="--> Install.sh [$cmd_cpr \"${win32sdir}\" \"${gsdlhome}/bin/windows\"]" 239 echo "$msg" 240 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD" 241 $cmd_cpr "$win32sdir" "${gsdlhome}/bin/windows" 242 fi 207 243 208 244 # copy setup shell scripts across too trunk/gsdl/bin/script/create_distributions.pl
r2033 r2334 165 165 166 166 # Windows directory 167 &install_windows_specific ($windows_dist_dir );167 &install_windows_specific ($windows_dist_dir, 0); 168 168 } 169 169 … … 223 223 224 224 # Windows directory 225 &install_windows_specific ($cdrom_dist_dir );225 &install_windows_specific ($cdrom_dist_dir, 1); 226 226 227 227 # Unix directory … … 319 319 } 320 320 321 # if $cd_rom is not true then we don't want to include the net16, net32, 322 # Win32s or netscape directories in the bin/windows directory (note that 323 # this currently means exportcol.pl will fail for all but cd-rom installed 324 # distributions) 321 325 sub install_windows_specific { 322 my ($install_dir ) = @_;326 my ($install_dir, $cd_rom) = @_; 323 327 324 328 my $windir = &util::filename_cat ($install_dir, "Windows"); … … 327 331 mkdir ($winbindir, 0777); 328 332 &util::cp_r ($winbin, $winbindir); 333 334 if (!$cd_rom) { 335 &util::rm_r (&util::filename_cat ($winbindir, "net16")); 336 &util::rm_r (&util::filename_cat ($winbindir, "net32")); 337 &util::rm_r (&util::filename_cat ($winbindir, "Win32s")); 338 &util::rm_r (&util::filename_cat ($winbindir, "netscape")); 339 } 329 340 330 341 # make sure there aren't any CVS directories laying around trunk/gsdl/bin/script/exportcol.pl
r2138 r2334 118 118 print MANIFESTCFG " {library} {collection}\n\n"; 119 119 print MANIFESTCFG "library:\n"; 120 print MANIFESTCFG " server.exe\n\n";120 print MANIFESTCFG " net32 net16 server.exe\n\n"; 121 121 print MANIFESTCFG "database:\n"; 122 print MANIFESTCFG ' collect\$(COLDIRNAME)\index\text\$(COLDIRNAME).ldb' . "\n\n";122 print MANIFESTCFG ' etc collect\$(COLDIRNAME)\index\text\$(COLDIRNAME).ldb' . "\n\n"; 123 123 print MANIFESTCFG "collection:\n"; 124 124 print MANIFESTCFG " collect etc images macros mappings\n"; … … 133 133 my $gssetupexe = &util::filename_cat ($ENV{'GSDLHOME'}, "bin", "windows", "gssetup.exe"); 134 134 my $setupexe = &util::filename_cat ($ENV{'GSDLHOME'}, "bin", "windows", "Setup.exe"); 135 my $net32dir = &util::filename_cat ($ENV{'GSDLHOME'}, "bin", "windows", "net32"); 136 my $net16dir = &util::filename_cat ($ENV{'GSDLHOME'}, "bin", "windows", "net16"); 137 my $netscapedir = &util::filename_cat ($ENV{'GSDLHOME'}, "bin", "windows", "netscape"); 138 my $win32sdir = &util::filename_cat ($ENV{'GSDLHOME'}, "bin", "windows", "Win32s"); 135 139 136 140 if ((!-d $imagesdir) || (!-d $macrosdir) || (!-d $mappingsdir) || (!-e $maincfg) || 137 (!-e $serverexe) || (!-e $gssetupexe) || (!-e $setupexe)) { 141 (!-e $serverexe) || (!-e $gssetupexe) || (!-e $setupexe) || (!-d $net32dir) || 142 (!-d $net16dir) || (!-d $netscapedir) || (!-d $win32sdir)) { 138 143 print $out "exportcol.pl failed: One or more the the following necessary\n"; 139 144 print $out "files and directories does not exist\n\n"; … … 145 150 print $out " $gssetupexe\n"; 146 151 print $out " $setupexe\n"; 152 print $out " $net32dir\n"; 153 print $out " $net16dir\n"; 154 print $out " $netscapedir\n"; 155 print $out " $win32sdir\n"; 147 156 die "\n"; 148 157 } … … 155 164 &util::cp ($gssetupexe, $topdir); 156 165 &util::cp ($setupexe, $topdir); 166 &util::cp_r ($net32dir, $gsdldir); 167 &util::cp_r ($net16dir, $gsdldir); 168 &util::cp_r ($netscapedir, $topdir); 169 &util::cp_r ($win32sdir, $topdir); 157 170 158 171 # copy the collection itself
