From 3084f4a840fd1f6c452ab1f543ea484d42860b15 Mon Sep 17 00:00:00 2001 From: David Dykstal Date: Wed, 7 Jun 2006 02:05:02 +0000 Subject: [PATCH] Moving from ruby to perl so that this can be run on build.eclipse.org --- releng/org.eclipse.rse.build/build.pl | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/releng/org.eclipse.rse.build/build.pl b/releng/org.eclipse.rse.build/build.pl index c5d5c3ee953..1d8d7547188 100644 --- a/releng/org.eclipse.rse.build/build.pl +++ b/releng/org.eclipse.rse.build/build.pl @@ -18,6 +18,17 @@ sub ask($$) { 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 # This should include the org.eclipse.pde.build project $eclipse = "../eclipse"; @@ -29,6 +40,10 @@ $builder = "."; # $working is where the build is actually done, does not need to exist $working = "../working"; +# make these absolute paths +$eclipse = makeAbsolute($eclipse); +$builder = makeAbsolute($builder); +$working = makeAbsolute($working); $plugins = File::Spec->catdir($eclipse, "plugins"); $baseBuilderGlob = File::Spec->catdir($plugins, "org.eclipse.pde.build*");