Changeset 684

Show
Ignore:
Timestamp:
2005年08月24日 10時49分42秒 (3 years ago)
Author:
fujii
Message:

* Makefile.am (AM_CXXFLAGS): Warning options is modified
tentatively.

* Makefile.in (AM_CXXFLAGS): Ditto.

* res.rc (IDC_ROOT_DESKTOP): Widened.
(IDC_ROOT_DESKTOP): Ditto.

* io_stream_cygfile.cc (io_stream_cygfile::write): A Workaround.
Forces to flush a file after writing.

* desktop.cc (get_ImageMagick_installer_path): New Function.
(install_ImageMagick): Detect a path of ImageMagick? installer by
installation information.
(do_desktop_setup): Call both of install_ImageMagick() and
install_Meadow() properly.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/3.00/src/ChangeLog.Meadow

    r662 r684  
     12005-08-24  Masayuki FUJII  <boochang@m4.kcn.ne.jp> 
     2 
     3        * Makefile.am (AM_CXXFLAGS): Warning options is modified 
     4        tentatively. 
     5 
     6        * Makefile.in (AM_CXXFLAGS): Ditto. 
     7 
     8        * res.rc (IDC_ROOT_DESKTOP): Widened. 
     9        (IDC_ROOT_DESKTOP): Ditto. 
     10 
     11        * io_stream_cygfile.cc (io_stream_cygfile::write): A Workaround. 
     12        Forces to flush a file after writing. 
     13 
     14        * desktop.cc (get_ImageMagick_installer_path): New Function. 
     15        (install_ImageMagick): Detect a path of ImageMagick installer by 
     16        installation information. 
     17        (do_desktop_setup): Call both of install_ImageMagick() and 
     18        install_Meadow() properly. 
     19 
    1202005-07-15  KOSEKI Yoshinori  <kose@meadowy.org> 
    221 
  • branches/3.00/src/Makefile.am

    r644 r684  
    2828# this warning. (Bug verified present in gcc-3.3) 
    2929BASECXXFLAGS    = -Wall -Wpointer-arith -Wcomments -Wcast-align -Wwrite-strings 
    30 AM_CXXFLAGS     = -Werror $(BASECXXFLAGS) 
     30#AM_CXXFLAGS    = -Werror $(BASECXXFLAGS) 
     31AM_CXXFLAGS     = $(BASECXXFLAGS) 
    3132AM_CFLAGS       = $(AM_CXXFLAGS) -Wmissing-declarations -Winline \ 
    3233                  -Wstrict-prototypes -Wmissing-prototypes 
  • branches/3.00/src/Makefile.in

    r644 r684  
    290290# this warning. (Bug verified present in gcc-3.3) 
    291291BASECXXFLAGS = -Wall -Wpointer-arith -Wcomments -Wcast-align -Wwrite-strings 
    292 AM_CXXFLAGS = -Werror $(BASECXXFLAGS) 
     292#AM_CXXFLAGS = -Werror $(BASECXXFLAGS) 
     293AM_CXXFLAGS = $(BASECXXFLAGS) 
    293294AM_CFLAGS = $(AM_CXXFLAGS) -Wmissing-declarations -Winline \ 
    294295                  -Wstrict-prototypes -Wmissing-prototypes 
  • branches/3.00/src/desktop.cc

    r644 r684  
    222222} 
    223223 
     224static String 
     225get_ImageMagick_installer_path () 
     226{ 
     227  packagedb db; 
     228  PackageSpecification spec ("imagemagick"); 
     229  packagemeta *required = db.findBinary (spec); 
     230 
     231  /* 
     232   * check appropriate ImageMagick package is installed. 
     233   */ 
     234  if (!required) 
     235    return ""; 
     236 
     237  if (!(spec.satisfies (required->installed) 
     238        && required->desired == required->installed)) 
     239    return ""; 
     240 
     241  String file_name = required->installed.getfirstfile (); 
     242 
     243  /* 
     244   * find a file which name ends with ".exe". 
     245   */ 
     246  while (int length = file_name.size ()) 
     247    { 
     248      // 4 is length of ".exe". 
     249      if (length > 4 
     250          && strnicmp (file_name.cstr () + (length - 4), ".exe", 4) == 0) 
     251        return file_name; 
     252    } 
     253 
     254  return ""; 
     255} 
     256 
    224257static void 
    225258install_ImageMagick () 
    226259{ 
    227   SetCurrentDirectory (get_root_dir ().cstr_oneuse ()); 
    228   system ("ImageMagick-6.0.1-Q16-windows-dll.exe"); 
     260  String path = get_ImageMagick_installer_path (); 
     261 
     262  if (path.size () > 0) 
     263    { 
     264      SetCurrentDirectory (get_root_dir ().cstr_oneuse ()); 
     265 
     266      system (path.cstr_oneuse ()); 
     267    } 
    229268} 
    230269#endif 
     
    236275  if (root_menu) 
    237276    { 
     277      install_ImageMagick (); 
     278    } 
     279 
     280  if (root_desktop) 
     281    { 
    238282      install_Meadow (); 
    239     } 
    240  
    241   if (root_desktop) 
    242     { 
    243       install_ImageMagick (); 
    244283    } 
    245284#else 
  • branches/3.00/src/io_stream_cygfile.cc

    r644 r684  
    255255{ 
    256256  if (fp) 
     257#if MEADOW_NETINSTALL 
     258    { 
     259      /* 
     260       * Workaround: Some instances of io_stream is not destructed 
     261       * because of memory leak. Therefore, some of small files are 
     262       * not flushed to disk until process of setup is finished. 
     263       */ 
     264      ssize_t ret = fwrite (buffer, 1, len, fp); 
     265      fflush (fp); 
     266      return ret; 
     267    } 
     268#else 
    257269    return fwrite (buffer, 1, len, fp); 
     270#endif 
    258271  return 0; 
    259272} 
  • branches/3.00/src/libgetopt++/Makefile.am

    r644 r684  
    55 
    66AUTOMAKE_OPTIONS = dist-bzip2 subdir-objects 1.5 foreign 
    7 AM_CXXFLAGS = -Wall -Werror 
     7#AM_CXXFLAGS = -Wall -Werror 
     8AM_CXXFLAGS = -Wall 
    89##DIST_SUBDIRS  = src 
    910##SUBDIRS               = src 
  • branches/3.00/src/libgetopt++/Makefile.in

    r644 r684  
    223223target_alias = @target_alias@ 
    224224AUTOMAKE_OPTIONS = dist-bzip2 subdir-objects 1.5 foreign 
    225 AM_CXXFLAGS = -Wall -Werror 
     225#AM_CXXFLAGS = -Wall -Werror 
     226AM_CXXFLAGS = -Wall 
    226227DISTCLEANFILES = include/stamp-h include/stamp-h[0-9]* 
    227228INCLUDES = -I$(top_srcdir)/include 
  • branches/3.00/src/res.rc

    r660 r684  
    272272BEGIN 
    273273    CONTROL         "Execute install.exe",IDC_ROOT_DESKTOP,"Button", 
    274                     BS_AUTOCHECKBOX,108,78,100,8 
     274                    BS_AUTOCHECKBOX,108,78,120,8 
    275275    CONTROL         "Execute ImageMagick's setup.",IDC_ROOT_MENU,"Button", 
    276                     BS_AUTOCHECKBOX,108,93,100,8 
     276                    BS_AUTOCHECKBOX,108,93,120,8 
    277277    ICON            IDI_CYGWIN,IDC_HEADICON,290,0,21,20 
    278278    CONTROL         "",IDC_HEADSEPARATOR,"Static",SS_BLACKFRAME | SS_SUNKEN,0,28,