Changeset 684
- Timestamp:
- 2005年08月24日 10時49分42秒 (3 years ago)
- Files:
-
- branches/3.00/src/ChangeLog.Meadow (modified) (1 diff)
- branches/3.00/src/Makefile.am (modified) (1 diff)
- branches/3.00/src/Makefile.in (modified) (1 diff)
- branches/3.00/src/desktop.cc (modified) (2 diffs)
- branches/3.00/src/io_stream_cygfile.cc (modified) (1 diff)
- branches/3.00/src/libgetopt++/ChangeLog.Meadow (added)
- branches/3.00/src/libgetopt++/Makefile.am (modified) (1 diff)
- branches/3.00/src/libgetopt++/Makefile.in (modified) (1 diff)
- branches/3.00/src/res.rc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/3.00/src/ChangeLog.Meadow
r662 r684 1 2005-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 1 20 2005-07-15 KOSEKI Yoshinori <kose@meadowy.org> 2 21 branches/3.00/src/Makefile.am
r644 r684 28 28 # this warning. (Bug verified present in gcc-3.3) 29 29 BASECXXFLAGS = -Wall -Wpointer-arith -Wcomments -Wcast-align -Wwrite-strings 30 AM_CXXFLAGS = -Werror $(BASECXXFLAGS) 30 #AM_CXXFLAGS = -Werror $(BASECXXFLAGS) 31 AM_CXXFLAGS = $(BASECXXFLAGS) 31 32 AM_CFLAGS = $(AM_CXXFLAGS) -Wmissing-declarations -Winline \ 32 33 -Wstrict-prototypes -Wmissing-prototypes branches/3.00/src/Makefile.in
r644 r684 290 290 # this warning. (Bug verified present in gcc-3.3) 291 291 BASECXXFLAGS = -Wall -Wpointer-arith -Wcomments -Wcast-align -Wwrite-strings 292 AM_CXXFLAGS = -Werror $(BASECXXFLAGS) 292 #AM_CXXFLAGS = -Werror $(BASECXXFLAGS) 293 AM_CXXFLAGS = $(BASECXXFLAGS) 293 294 AM_CFLAGS = $(AM_CXXFLAGS) -Wmissing-declarations -Winline \ 294 295 -Wstrict-prototypes -Wmissing-prototypes branches/3.00/src/desktop.cc
r644 r684 222 222 } 223 223 224 static String 225 get_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 224 257 static void 225 258 install_ImageMagick () 226 259 { 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 } 229 268 } 230 269 #endif … … 236 275 if (root_menu) 237 276 { 277 install_ImageMagick (); 278 } 279 280 if (root_desktop) 281 { 238 282 install_Meadow (); 239 }240 241 if (root_desktop)242 {243 install_ImageMagick ();244 283 } 245 284 #else branches/3.00/src/io_stream_cygfile.cc
r644 r684 255 255 { 256 256 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 257 269 return fwrite (buffer, 1, len, fp); 270 #endif 258 271 return 0; 259 272 } branches/3.00/src/libgetopt++/Makefile.am
r644 r684 5 5 6 6 AUTOMAKE_OPTIONS = dist-bzip2 subdir-objects 1.5 foreign 7 AM_CXXFLAGS = -Wall -Werror 7 #AM_CXXFLAGS = -Wall -Werror 8 AM_CXXFLAGS = -Wall 8 9 ##DIST_SUBDIRS = src 9 10 ##SUBDIRS = src branches/3.00/src/libgetopt++/Makefile.in
r644 r684 223 223 target_alias = @target_alias@ 224 224 AUTOMAKE_OPTIONS = dist-bzip2 subdir-objects 1.5 foreign 225 AM_CXXFLAGS = -Wall -Werror 225 #AM_CXXFLAGS = -Wall -Werror 226 AM_CXXFLAGS = -Wall 226 227 DISTCLEANFILES = include/stamp-h include/stamp-h[0-9]* 227 228 INCLUDES = -I$(top_srcdir)/include branches/3.00/src/res.rc
r660 r684 272 272 BEGIN 273 273 CONTROL "Execute install.exe",IDC_ROOT_DESKTOP,"Button", 274 BS_AUTOCHECKBOX,108,78,1 00,8274 BS_AUTOCHECKBOX,108,78,120,8 275 275 CONTROL "Execute ImageMagick's setup.",IDC_ROOT_MENU,"Button", 276 BS_AUTOCHECKBOX,108,93,1 00,8276 BS_AUTOCHECKBOX,108,93,120,8 277 277 ICON IDI_CYGWIN,IDC_HEADICON,290,0,21,20 278 278 CONTROL "",IDC_HEADSEPARATOR,"Static",SS_BLACKFRAME | SS_SUNKEN,0,28,
