[Bio] / FigCommon / bootstrap.pl Repository:
ViewVC logotype

Annotation of /FigCommon/bootstrap.pl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.13 - (view) (download) (as text)

1 : olson 1.1 #
2 :     # FIG bootstrap script.
3 :     #
4 :     # Control is passed here from the toplevel configure (or dists/releases/install depending
5 :     # on how far we've gotten in the process).
6 :     #
7 :     # The configure has set the following environment variables for our use:
8 :     #
9 :     # FIG_HOME Root of the FIGdisk tree we're setting up
10 :     # FIGCONFIG_ENV Name of the environment we're configuring for
11 :     # FIGCONFIG_ENV_DIR Directory in which the binary install tree for $FIGCONFIG_ENV lives
12 :     # FIGCONFIG_RELEASE Release number we're configuring
13 :     # FIGCONFIG_RELEASE_DIR Directory in which that release lives
14 :     #
15 :     # Important note: perl system libraries may not be available when this
16 :     # script is running, if the FIGCONFIG_ENV_DIR is different than it was
17 :     # when the binaries were created. Part of the task of this
18 :     # script is to recognize this case and configure the process
19 :     # environment correctly so that the post-install process as
20 :     # handled by the Makefiles can use perl properly, without concern for paths.
21 :     #
22 :    
23 :     #
24 :     # Look into the FIGCONFIG_ENV_DIR for the PREFIX that this
25 :     # environment was compiled on. If that directory is different
26 :     # than the one we're currently using, rewrite @INC accordingly.
27 :     #
28 :     # We put this into a BEGIN block so that we can later use "use"
29 :     # without worrying about paths.
30 :     #
31 :     # We also set the $perlenv_override to true if we've done this,
32 :     # so we can insert these fixes into the perl tool header.
33 :     #
34 :    
35 :     BEGIN {
36 :    
37 : olson 1.3 print "Here in the perl bootstrap. inc is:\n" . join("\n", @INC), "\n";
38 : olson 1.1
39 :     my $my_prefix, $prefix, $inc, @newInc;
40 :    
41 :     $my_prefix = $ENV{FIGCONFIG_ENV_DIR};
42 :     open(P, "<$my_prefix/PREFIX");
43 :     $prefix = <P>;
44 :     chomp $prefix;
45 :    
46 :    
47 :     # print "Prefix is $prefix myprefix=$my_prefix\n";
48 :    
49 :     if ($prefix ne $my_prefix)
50 :     {
51 :     @newInc = ();
52 :     for $inc (@INC)
53 :     {
54 :     $inc =~ s,^$prefix,$my_prefix,;
55 :     push(@newInc, $inc);
56 :     }
57 :    
58 :     $::perlenv_override = 1;
59 : olson 1.3 @INC = @newInc;
60 : olson 1.1 }
61 :     }
62 :    
63 :    
64 :     use FileHandle;
65 :     use strict;
66 :    
67 :     #
68 :     # Environment definition
69 :     #
70 :     # This list contains triples
71 :     # ($name, $value, $appendFlag). $name is the name of the
72 :     # variable; $value is the value to set, and $appendFlag
73 :     # is nonzero if we need to append this value to an existing
74 :     # environment variable.
75 :     #
76 :    
77 :     our $Env = [];
78 :    
79 :     #
80 :     # FIG configuration information.
81 :     # This list contains tuples [$name, $value, $quote]
82 :     # which are to be set in the FIG_Config modules for
83 :     # both python and perl. $quote is 1 for things that need
84 :     # to be quoted, 0 otherwise.
85 :     #
86 :     our $Config = [];
87 :    
88 :     #
89 :     # Other key/value pairs of stuff we may need to pass
90 :     # to and from the environment-specific configuration modules.
91 :     #
92 :     # Known keys:
93 :     #
94 :     # pythonpath
95 :     #
96 :    
97 :     our $OtherConfig = {};
98 :    
99 :     #
100 :     # Cache values of the various places we may be installing things.
101 :     #
102 :    
103 :     our $fig_disk = $ENV{FIG_HOME};
104 :     our $env_name = $ENV{FIGCONFIG_ENV};
105 : olson 1.7 our $env_dir = "$ENV{FIGCONFIG_ENV_DIR}";
106 : olson 1.1 our $env_bin = "$ENV{FIGCONFIG_ENV_DIR}/bin";
107 :     our $env_lib = "$ENV{FIGCONFIG_ENV_DIR}/lib";
108 : olson 1.2 #
109 :     # We are moving to use a symlink in dist/releases/current for these.
110 :     # This symlink is managed by switch_to_release.
111 :     #
112 :     #our $release_bin = "$ENV{FIGCONFIG_RELEASE_DIR}/bin/$ENV{FIGCONFIG_ENV}";
113 :     #our $release_lib = "$ENV{FIGCONFIG_RELEASE_DIR}/lib/$ENV{FIGCONFIG_ENV}";
114 :    
115 : olson 1.8 our $release_bin = "$fig_disk/dist/releases/current/$ENV{FIGCONFIG_ENV}/bin";
116 :     our $release_lib = "$fig_disk/dist/releases/current/$ENV{FIGCONFIG_ENV}/lib";
117 : olson 1.2
118 :     our $fig_bin = "$fig_disk/FIG/bin";
119 : olson 1.1
120 :     #
121 :     # Location of start/stop servers scripts.
122 :     #
123 :     our $start_servers = "$fig_disk/bin/start-servers";
124 :     our $stop_servers = "$fig_disk/bin/stop-servers";
125 :    
126 :     sub configure_std_fig_environment
127 :     {
128 :     #
129 :     # Populate the Config with the usual stuff we need in FIG_Config.pm.
130 :     #
131 :    
132 :     my $fig = "$fig_disk/FIG";
133 :     my $data = "$fig/Data";
134 :    
135 :     my $hostname = `hostname`;
136 :     chomp $hostname;
137 :    
138 :     push(@$Config, ["fig_disk", $fig_disk, 1]);
139 : olson 1.6 push(@$Config, ["blastmat", "$fig_disk/BLASTMAT", 1]);
140 : olson 1.1 push(@$Config, ["fig", $fig, 1]);
141 : olson 1.2 push(@$Config, ["bin", $fig_bin, 1]);
142 : olson 1.1 push(@$Config, ["ext_bin", $env_bin, 1]);
143 :     push(@$Config, ["data", $data, 1]);
144 :     push(@$Config, ["global", "$data/Global", 1]);
145 :     push(@$Config, ["organisms", "$data/Organisms", 1]);
146 :     push(@$Config, ["RC", "$fig_disk/FIG/ResolutionCenter", 1]);
147 :     push(@$Config, ["NR", "$fig_disk/FIG/NR", 1]);
148 :     push(@$Config, ["temp", "$fig_disk/FIG/Tmp", 1]);
149 : olson 1.11
150 :     my $sandbox;
151 :     if ($ENV{FIGCONFIG_SANDBOX})
152 :     {
153 :     $sandbox = "/$ENV{FIGCONFIG_SANDBOX}";
154 :     }
155 :    
156 :     push(@$Config, ["temp_url", "http://$hostname$sandbox/FIG-Tmp", 1]);
157 :     push(@$Config, ["cgi_url", "http://$hostname$sandbox/FIG", 1]);
158 : golsen 1.9
159 :     #
160 :     # Add values for a relative base href of temp and CGI pages. The latter
161 :     # is used by HHTP.pm to write common page start. It would make the most
162 :     # sense to derive the above 2 values from these. -- GJO
163 :     #
164 :    
165 : olson 1.11 push(@$Config, ["temp_base", "$sandbox/FIG-Tmp/", 1]);
166 :     push(@$Config, ["cgi_base", "$sandbox/FIG/", 1]);
167 : olson 1.1 }
168 :    
169 :     sub compute_environment
170 :     {
171 :     #
172 :     # ReleaseTools configuration.
173 :     #
174 :    
175 :     push(@$Env, ["RTROOT", $ENV{FIG_HOME}, 0]);
176 :     push(@$Env, ["RTDIST", "\$RTROOT/dist", 0]);
177 :     push(@$Env, ["RTARCH", $ENV{FIGCONFIG_ENV}, 0]);
178 : olson 1.2 push(@$Env, ["RTCURRENT", "`cat \$RTROOT/CURRENT_RELEASE`", 0]);
179 : olson 1.1 push(@$Env, ["FIG_HOME", $ENV{FIG_HOME}, 0]);
180 :    
181 :     push(@$Env, ["BLASTMAT", "$ENV{FIG_HOME}/BLASTMAT", 0]);
182 :    
183 :     #
184 :     # Determine the path to use.
185 :     #
186 :     # This includes the path into the particular release we're configuring for,
187 :     # and to the environment's bin directory.
188 :     #
189 :    
190 :     my @path = ();
191 :     push(@path, $env_bin);
192 : olson 1.2 push(@path, $fig_bin);
193 : olson 1.1 push(@path, "$fig_disk/bin");
194 :    
195 :     push(@$Env, ["PATH", join(":", @path), 1]);
196 :    
197 : olson 1.2 push(@$Env, ["LD_LIBRARY_PATH", "${env_lib}", 1]);
198 : olson 1.11
199 : olson 1.12 my @perllib = grep({ $_ ne "." } @INC, "$fig_disk/config", $release_lib);
200 :    
201 :     push(@$Env, ["PERL5LIB", join(":", @perllib), 1]);
202 : olson 1.1 }
203 :    
204 :     sub configure_python
205 :     {
206 :     #
207 :     # Determine the PYTHONPATH we're to use.
208 :     #
209 :     # Right now, we don't compute a replacement for the system path,
210 :     # but we're likely going to require that *if* python is
211 :     # distributed with the environment. We're currently not doing that.
212 :     #
213 :     # So we just need to point to any python packages in the release,
214 :     # and to packages that were installed in the environment dir.
215 :     #
216 :    
217 :     my $python = find_python();
218 :     print "Found python at $python\n";
219 :    
220 :     my $py_version = `$python -c 'import sys; print "%d.%d" % (sys.version_info[:2])'`;
221 :     chomp $py_version;
222 :     print "Python version $py_version\n";
223 :    
224 : olson 1.2 $OtherConfig->{python_site_path} = "$ENV{FIGCONFIG_ENV_DIR}/lib/python$py_version/site-packages";
225 :    
226 : olson 1.1 my @path = ();
227 : olson 1.2 push(@path, $OtherConfig->{python_site_path});
228 :     push(@path, "$release_lib");
229 : olson 1.1 push(@path, "$fig_disk/config");
230 :     push(@$Env, ["PYTHONPATH", join(":", @path), 1]);
231 :    
232 :     $OtherConfig->{pythonpath} = join(":", @path);
233 :     }
234 :    
235 :     sub find_in_path
236 :     {
237 : olson 1.5 my($file, @extra) = @_;
238 : olson 1.1 my(@path) = split(":", $ENV{PATH});
239 :    
240 : olson 1.5 for my $p (@path, @extra)
241 : olson 1.1 {
242 :     my $x = "$p/$file";
243 :     if (-x $x)
244 :     {
245 :     return $x;
246 :     }
247 :     }
248 :     return undef;
249 :     }
250 :    
251 :     #
252 :     # Find the name of the python executable we are to use.
253 :     #
254 :     sub find_python
255 :     {
256 :     my $python;
257 :    
258 :     #
259 :     # Special case for the mac.
260 :     #
261 : olson 1.11 # RDO 20040603 - don't do this any more; we want to pick up
262 :     # the python we ship.
263 :     #
264 : olson 1.1
265 : olson 1.11 if (0 && $ENV{FIGCONFIG_ENV} eq "mac")
266 : olson 1.1 {
267 : olson 1.7 #
268 :     # We'd like to use the MacPython that is installed
269 :     # as pythonw.
270 :     #
271 :     if ($python = find_in_path("pythonw", "/usr/local/bin"))
272 : olson 1.1 {
273 : olson 1.7 $OtherConfig->{python_require_poundbang_env} = 1;
274 : olson 1.1 return $python;
275 :     }
276 :    
277 :     #
278 : olson 1.7 # Otherwise, we can live with the regular python.
279 :     # Fall thru to the generic case.
280 : olson 1.1 #
281 : olson 1.7 }
282 :     #
283 :     # Non-mac, just look in the env dir or the path.
284 :     #
285 : olson 1.1
286 : olson 1.7 $python = "$ENV{FIGCONFIG_ENV_DIR}/bin/python";
287 :     if (-x $python)
288 :     {
289 : olson 1.13 #
290 :     # The mac doesn't seem to like the long #! lines, so we'll use poundbang env.
291 :     #
292 :     if ($ENV{FIGCONFIG_ENV} eq "mac")
293 :     {
294 :     $OtherConfig->{python_require_poundbang_env} = 1;
295 :     }
296 : olson 1.7 return $python;
297 : olson 1.1 }
298 :    
299 : olson 1.7 return find_in_path("python");
300 : olson 1.1 }
301 :    
302 :     #
303 :     # Find the name of the perl executable we are to use.
304 :     #
305 :     sub find_perl
306 :     {
307 :     my $perl;
308 :    
309 :     $perl = "$ENV{FIGCONFIG_ENV_DIR}/bin/perl";
310 :     if (-x $perl)
311 :     {
312 :     return $perl;
313 :     }
314 :    
315 :     warn "We did not find a perl executable in the SEED distribution; some modules may not be found\n";
316 :     return find_in_path("perl");
317 :     }
318 :    
319 :     sub write_bash_init
320 :     {
321 :     my($fh, $env) = @_;
322 :    
323 :     foreach my $item (@$env)
324 :     {
325 :     my($name, $value, $append) = @$item;
326 :    
327 :     if ($append)
328 :     {
329 :     #
330 :     # Write code to detect if the value is set, and act accordingly.
331 :     #
332 :    
333 :     print $fh <<END;
334 :     DELIM=
335 :     if [ -n "\$$name" ] ; then
336 :     DELIM=:
337 :     fi
338 : olson 1.10 $name=$value\${DELIM}\${$name}
339 : olson 1.1 export $name
340 :     END
341 :     }
342 :     else
343 :     {
344 :     print $fh "$name=\"$value\"\n";
345 :     print $fh "export $name\n";
346 :     }
347 :     }
348 :     }
349 :    
350 :     sub write_csh_init
351 :     {
352 :     my($fh, $env) = @_;
353 :    
354 :     foreach my $item (@$env)
355 :     {
356 :     my($name, $value, $append) = @$item;
357 :    
358 :     if ($append)
359 :     {
360 :     #
361 :     # Write code to detect if the value is set, and act accordingly.
362 :     #
363 :    
364 :     print $fh <<END;
365 :     if (\$?$name) then
366 : olson 1.10 setenv $name $value:\${$name}
367 : olson 1.1 else
368 :     setenv $name $value
369 :     endif
370 :     END
371 :     }
372 :     else
373 :     {
374 :     print $fh "setenv $name \"$value\"\n";
375 :     }
376 :     }
377 :    
378 :     }
379 :    
380 :     sub run_script
381 :     {
382 :     my($script) = @_;
383 :    
384 :    
385 :     unless (my $ret = do $script)
386 :     {
387 :     if ($@)
388 :     {
389 :     warn "Error parsing $script: $@\n";
390 :     }
391 :     elsif (!defined($ret))
392 :     {
393 :     warn "Couldn't do $script: $!\n";
394 :     }
395 :     else
396 :     {
397 :     warn "Counldn't run $script\n";
398 :     }
399 :     }
400 :    
401 :    
402 :     }
403 :    
404 :     sub configure_environment_specific
405 :     {
406 :     my $env_script = $ENV{FIGCONFIG_ENV_CONFIG};
407 :    
408 :     if (! -f $env_script)
409 :     {
410 :     warn "No environment-specific configuration file $env_script found, skipping\n";
411 :     return;
412 :     }
413 :    
414 :     run_script($env_script);
415 :     }
416 :    
417 :     #
418 :     # Create any directories that might be missing.
419 :     #
420 :    
421 :     sub setup_directories
422 :     {
423 :     my(@needed) = @_;
424 :    
425 :     for my $dir (@needed)
426 :     {
427 :     if (! -d $dir)
428 :     {
429 :     mkdir($dir) or warn "Could not create $dir: $!\n";
430 :     }
431 :     }
432 :     }
433 :    
434 :     sub setup_server_scripts
435 :     {
436 :     #
437 :     # Remove any start/stop servers scripts we might have, and write the stub
438 :     # start.
439 :     #
440 :    
441 :     unlink($start_servers);
442 :     unlink($stop_servers);
443 :    
444 :     open(F, ">$start_servers") or die "Cannot write $start_servers: $!";
445 :     print F "#!/bin/sh\n\n";
446 :     close(F);
447 :     chmod(0775, $start_servers);
448 :    
449 :     open(F, ">$stop_servers") or die "Cannot write $stop_servers: $!";
450 :     print F "#!/bin/sh\n\n";
451 :     close(F);
452 :     chmod(0775, $stop_servers);
453 :    
454 :     }
455 :    
456 : olson 1.7 sub finalize_server_scripts
457 :     {
458 :     #
459 :     # After any environment-specific stuff, call start_services and stop_services.
460 :     #
461 :    
462 :     open(F, ">>$start_servers") or die "Cannot write $start_servers: $!";
463 :     print F "\n$fig_bin/start_services\n";
464 :     close(F);
465 :     chmod(0775, $start_servers);
466 :    
467 :     open(F, ">>$stop_servers") or die "Cannot write $stop_servers: $!";
468 :     print F "\n$fig_bin/stop_services\n";
469 :     close(F);
470 :     chmod(0775, $stop_servers);
471 :    
472 :     }
473 :    
474 : olson 1.1 sub write_config_pm
475 :     {
476 :     my($fh, $config) = @_;
477 :    
478 :     print $fh "package FIG_Config;\n\n";
479 :    
480 :     foreach my $item (@$config)
481 :     {
482 :     my($name, $value, $quote) = @$item;
483 :    
484 :     my $q = $quote ? '"' : '';
485 :     printf $fh "\$%-15s = $q$value$q;\n", $name
486 :     }
487 :    
488 :     print $fh "\n1;\n";
489 :     }
490 :    
491 :     sub write_config_py
492 :     {
493 :     my($fh, $config) = @_;
494 :    
495 :     foreach my $item (@$config)
496 :     {
497 :     my($name, $value, $quote) = @$item;
498 :    
499 :     #
500 :     # Ugh. "global" is a keyword in python.
501 :     #
502 :    
503 :     $name = "global_dir" if $name eq "global";
504 :    
505 :     my $q = $quote ? '"' : '';
506 :     printf $fh "%-15s = $q$value$q\n", $name
507 :     }
508 :     }
509 :    
510 :     sub write_tool_hdr_perl
511 :     {
512 :     my($fh) = @_;
513 :    
514 :     my $perl = find_perl();
515 :    
516 :     print $fh "#!$perl\n";
517 :     print $fh "\n";
518 :    
519 :     if ($::perlenv_override)
520 :     {
521 :     #
522 :     # Write the tool header BEGIN block to reset the environment.
523 :     #
524 :    
525 :     print $fh "BEGIN {\n";
526 :     print $fh " \@INC = qw(\n";
527 :     for my $inc (@INC)
528 :     {
529 :     next if $inc eq '.';
530 :     print $fh "\t$inc\n";
531 :     }
532 : olson 1.2 print $fh ");\n";
533 : olson 1.1 print $fh "}\n";
534 :     }
535 :    
536 :     print $fh "use Data::Dumper;\n";
537 :     print $fh "use Carp;\n";
538 :    
539 : olson 1.2 #
540 :     # We generate a comment here that gets expanded by switch_to_release
541 :     # This is part of the effort in making the environment bootstrapping
542 :     # code independent of releases.
543 :     #
544 :    
545 :     #print $fh "use lib \"$release_lib\";\n";
546 :     #print $fh "use lib \"$release_lib/FigKernelPackages\";\n";
547 :    
548 :     print $fh "# Following block is expanded by switch_to_release to add use lib directives\n";
549 :     print $fh "# to point at the correct locations in the release directory.\n";
550 :     print $fh "#BEGIN switch_to_release generated code\n";
551 :     print $fh "#END switch_to_release generated code\n";
552 :     print $fh "\n";
553 :    
554 : olson 1.1 print $fh "use lib \"$fig_disk/config\";\n";
555 :    
556 :     print $fh "use FIG_Config;\n";
557 :     print $fh "\n";
558 : olson 1.11 print $fh "#### END tool_hdr ####\n\n"
559 : olson 1.1 }
560 :    
561 :     sub write_tool_hdr_python
562 :     {
563 :     my($fh) = @_;
564 :    
565 :     my $python = find_python();
566 :    
567 : olson 1.4 if ($OtherConfig->{python_require_poundbang_env})
568 :     {
569 :     print $fh "#!/usr/bin/env $python\n";
570 :     }
571 :     else
572 :     {
573 :     print $fh "#!$python\n";
574 :     }
575 : olson 1.1 print $fh "\n";
576 :    
577 : olson 1.11 print $fh "import sys, os\n";
578 : olson 1.2
579 :    
580 :     print $fh "sys.path.append('$OtherConfig->{python_site_path}')\n";
581 :    
582 : olson 1.11 #
583 :     # Append the perl path to the environment, for use later with CallPerl.
584 :     #
585 :    
586 : olson 1.12 my $perlpath = join(":", @INC, "$fig_disk/config", $release_lib);
587 : olson 1.11 print $fh <<END;
588 :     if os.getenv("PERL5LIB", "") != "":
589 :     _delim = ":"
590 :     else:
591 :     _delim = ""
592 :     os.environ["PERL5LIB"] = "$perlpath" + _delim + os.getenv("PERL5LIB", "")
593 :    
594 :     END
595 :    
596 : olson 1.2 print $fh "# Following block is expanded by switch_to_release to add use lib directives\n";
597 :     print $fh "# to point at the correct locations in the release directory.\n";
598 :     print $fh "#BEGIN switch_to_release generated code\n";
599 :     print $fh "#END switch_to_release generated code\n";
600 :     print $fh "\n";
601 :    
602 :     print $fh "sys.path.append('$fig_disk/config')\n";
603 :    
604 : olson 1.1 print $fh "import FIG_Config\n";
605 :     print $fh "\n";
606 : olson 1.11 print $fh "#### END tool_hdr_py ####\n\n"
607 : olson 1.1 }
608 :    
609 :     setup_directories("$fig_disk/bin",
610 :     "$fig_disk/config");
611 :    
612 :     setup_server_scripts();
613 :    
614 :    
615 :     find_python();
616 :    
617 :     compute_environment();
618 :     configure_std_fig_environment();
619 :     configure_python();
620 :     configure_environment_specific();
621 : olson 1.7
622 :     finalize_server_scripts();
623 : olson 1.1
624 :     #
625 :     # Write the shell startup to the figdisk.
626 :     #
627 :     open(FH, ">$fig_disk/config/fig-user-env.sh") or die "Cannot write $fig_disk/config/fig-user-env.sh: $!";
628 :     write_bash_init(\*FH, $Env);
629 :     close(FH);
630 :    
631 :     open(FH, ">$fig_disk/config/fig-user-env.csh") or die "Cannot write $fig_disk/config/fig-user-env.csh: $!";
632 :     write_csh_init(\*FH, $Env);
633 :     close(FH);
634 :    
635 :     #
636 :     # Write the FIG_Config file.
637 :     #
638 :    
639 :     open(FH, ">$fig_disk/config/FIG_Config.pm") or die "Cannot write $fig_disk/config/FIG_Config.pm: $!";
640 :     write_config_pm(\*FH, $Config);
641 :     close(FH);
642 :    
643 :     open(FH, ">$fig_disk/config/FIG_Config.py") or die "Cannot write $fig_disk/config/FIG_Config.py: $!";
644 :     write_config_py(\*FH, $Config);
645 :     close(FH);
646 :    
647 :     #
648 :     # Write the tool headers
649 :     #
650 :    
651 : olson 1.2 open(FH, ">$fig_disk/config/base_tool_hdr") or die "Cannot write $fig_disk/config/tool_hdr: $!";
652 : olson 1.1 write_tool_hdr_perl(\*FH);
653 :     close(FH);
654 :    
655 : olson 1.2 open(FH, ">$fig_disk/config/base_tool_hdr_py") or die "Cannot write $fig_disk/config/tool_hdr_py: $!";
656 : olson 1.1 write_tool_hdr_python(\*FH);
657 :     close(FH);
658 :    
659 : olson 1.2 unshift(@INC, "$ENV{FIGCONFIG_RELEASE_DIR}");
660 :    
661 :     require FigCommon::SwitchRelease;
662 : olson 1.1
663 : olson 1.2 &FigCommon::SwitchRelease::switch_to_release($fig_disk, $ENV{FIGCONFIG_ENV}, $ENV{FIGCONFIG_RELEASE});

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3