greenstone.org greenstone wiki greenstone trac planet greenstone

Changeset 2334

Show
Ignore:
Timestamp:
2001-04-23 16:25:44 (8 years ago)
Author:
sjboddie
Message:

Tidied up the "export collection" function a little

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/gsdl/Install.sh

    r2325 r2334  
    9494if [ "$gsdlos" = "linux" ]; then 
    9595msg="${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). 
    9797" 
    9898fi 
    9999msg="${msg}--Compiling Greenstone from source code requires approximately 
    100   135Mb of free disk space (not including additional collections). 
     100  155Mb of free disk space (not including additional collections). 
    101101--Optional Greenstone demonstration collections may require up 
    102102  to 200Mb of free disk space (you'll be told the size of  
     
    205205echo "$msg" >> "${gsdlhome}/INSTALL_RECORD" 
    206206$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" 
     213if [ ! -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" 
     218fi 
     219if [ -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" 
     224fi 
     225if [ -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" 
     230fi 
     231if [ -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" 
     236fi 
     237if [ -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" 
     242fi 
    207243 
    208244# copy setup shell scripts across too 
  • trunk/gsdl/bin/script/create_distributions.pl

    r2033 r2334  
    165165 
    166166    # Windows directory 
    167     &install_windows_specific ($windows_dist_dir); 
     167    &install_windows_specific ($windows_dist_dir, 0); 
    168168} 
    169169 
     
    223223 
    224224    # Windows directory 
    225     &install_windows_specific ($cdrom_dist_dir); 
     225    &install_windows_specific ($cdrom_dist_dir, 1); 
    226226 
    227227    # Unix directory 
     
    319319} 
    320320 
     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) 
    321325sub install_windows_specific { 
    322     my ($install_dir) = @_; 
     326    my ($install_dir, $cd_rom) = @_; 
    323327 
    324328    my $windir = &util::filename_cat ($install_dir, "Windows"); 
     
    327331    mkdir ($winbindir, 0777); 
    328332    &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    } 
    329340 
    330341    # make sure there aren't any CVS directories laying around 
  • trunk/gsdl/bin/script/exportcol.pl

    r2138 r2334  
    118118    print MANIFESTCFG "  {library} {collection}\n\n"; 
    119119    print MANIFESTCFG "library:\n"; 
    120     print MANIFESTCFG "  server.exe\n\n"; 
     120    print MANIFESTCFG "  net32 net16 server.exe\n\n"; 
    121121    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"; 
    123123    print MANIFESTCFG "collection:\n"; 
    124124    print MANIFESTCFG "  collect etc images macros mappings\n"; 
     
    133133    my $gssetupexe = &util::filename_cat ($ENV{'GSDLHOME'}, "bin", "windows", "gssetup.exe"); 
    134134    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"); 
    135139 
    136140    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)) { 
    138143        print $out "exportcol.pl failed: One or more the the following necessary\n"; 
    139144        print $out "files and directories does not exist\n\n"; 
     
    145150        print $out "  $gssetupexe\n"; 
    146151        print $out "  $setupexe\n"; 
     152        print $out "  $net32dir\n"; 
     153        print $out "  $net16dir\n"; 
     154        print $out "  $netscapedir\n"; 
     155        print $out "  $win32sdir\n"; 
    147156        die "\n"; 
    148157    } 
     
    155164    &util::cp ($gssetupexe, $topdir); 
    156165    &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); 
    157170 
    158171    # copy the collection itself