mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-25 18:05:33 +02:00
Moving from ruby to perl so that this can be run on build.eclipse.org
This commit is contained in:
parent
463fd8af52
commit
3084f4a840
1 changed files with 15 additions and 0 deletions
|
@ -18,6 +18,17 @@ sub ask($$) {
|
||||||
return $ans;
|
return $ans;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sub makeAbsolute($) {
|
||||||
|
my $path = File::Spec->canonpath($_[0]);
|
||||||
|
if (!File::Spec->file_name_is_absolute($path)) {
|
||||||
|
$current = `pwd`;
|
||||||
|
chomp($current);
|
||||||
|
$path = File::Spec->catdir($current, $path);
|
||||||
|
$path = File::Spec->canonpath($path);
|
||||||
|
}
|
||||||
|
return $path;
|
||||||
|
}
|
||||||
|
|
||||||
# $eclipse is the location of the basic PDE and plugins to compile against
|
# $eclipse is the location of the basic PDE and plugins to compile against
|
||||||
# This should include the org.eclipse.pde.build project
|
# This should include the org.eclipse.pde.build project
|
||||||
$eclipse = "../eclipse";
|
$eclipse = "../eclipse";
|
||||||
|
@ -29,6 +40,10 @@ $builder = ".";
|
||||||
# $working is where the build is actually done, does not need to exist
|
# $working is where the build is actually done, does not need to exist
|
||||||
$working = "../working";
|
$working = "../working";
|
||||||
|
|
||||||
|
# make these absolute paths
|
||||||
|
$eclipse = makeAbsolute($eclipse);
|
||||||
|
$builder = makeAbsolute($builder);
|
||||||
|
$working = makeAbsolute($working);
|
||||||
$plugins = File::Spec->catdir($eclipse, "plugins");
|
$plugins = File::Spec->catdir($eclipse, "plugins");
|
||||||
$baseBuilderGlob = File::Spec->catdir($plugins, "org.eclipse.pde.build*");
|
$baseBuilderGlob = File::Spec->catdir($plugins, "org.eclipse.pde.build*");
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue