- fix creating build.root property
authorZdeněk Šustr <sustr4@cesnet.cz>
Fri, 16 Jan 2009 14:51:56 +0000 (14:51 +0000)
committerZdeněk Šustr <sustr4@cesnet.cz>
Fri, 16 Jan 2009 14:51:56 +0000 (14:51 +0000)
- "cd .." before configure invocation from etics config

org.glite.lb/configure

index 6720f03..fecb812 100755 (executable)
@@ -450,9 +450,9 @@ sub mode_etics {
        my $file = $output ? $output : "$conf.ini";
        open C,">$file" or die "$file: $!\n";
 
-       my $buildroot = $topbuild{$subsys.$module} ? '' : "build.root = build\n";
+       my $buildroot = $topbuild{"$subsys.$module"} ? '' : "build.root = build\n";
 
-       my $confdir = $topbuild{$subsys.$module} ? '../org.glite.lb' : '../../org.glite.lb';
+       my $confdir = $topbuild{"$subsys.$module"} ? '..' : '../..';
 
        print STDERR "Writing $file\n";
        print C qq{
@@ -489,7 +489,7 @@ init = None
 install = make install
 clean = make clean
 test = make check
-configure = $confdir/configure --module $subsys.$module @copts
+configure = cd $confdir && org.glite.lb/configure --module $subsys.$module @copts
 checkstyle = None
 
 [Platform-default:Property]