Skip to contentSkip to conversation

cluster configure

Cluster-devel [email protected] 1 participant 1 message Dec 21, 2007

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: cluster
Changes by: fabbione at sourceware.org 2007-12-21 05:58:34

Modified files:
. : configure

Log message:
Fix 2 corner cases when setting up the objdir:

- do not symlink symlinks.. this allows to setup multiple objdirs within the source tree.

- do not copy/symlink defines.mk from other trees or bad thing happens.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/configure.diff?cvsroot=cluster&r1=1.43&r2=1.44

configure +2 -1
@@ -287,11 +287,12 @@
 sub symlinks {
   my $dir = shift;
   my $pattern = shift;
-  @args = "find $dir -name $pattern";
+  @args = "find $dir -type f -name $pattern";
   open (IFILE, "@args |");
   while (<IFILE>) {
     chomp;
     s|\./||g;
+    s|.*make\/defines.mk||g;
     $dirname = dirname($_);
     $filename = basename($_);
     system("mkdir -p $objdir/$dirname");