s3-build: remove EXEEXT from Makefiles
[gd/samba-autobuild/.git] / packaging / SGI / idb.pl
index 72f573b8ee1b44e5321f4e654f83ed7275675231..2383ff5b8d62a3ac07cf3ef0999f1e9234e36118 100755 (executable)
@@ -39,10 +39,6 @@ while (not eof(MAKEFILE)) {
   $_ = <MAKEFILE>;
   chomp;
   last if /^# object file lists/ ;
-  if (/^EXEEXT/) {
-    /^.*=(.*)/;
-    $EXEEXT = $1;
-  }
   if (/^srcdir/) {
     /^.*=(.*)/;
     $srcdir = $1;
@@ -132,9 +128,6 @@ while(@bins) {
     if ($filename eq "smbpasswd") {
       print IDB "f 0755 root sys usr/samba/bin/$filename $SRCPFX/source/$nextfile $PKG.sw.base \n";
     }
-    elsif ($filename eq "findsmb") {
-      print IDB "f 0755 root sys usr/samba/bin/$filename $SRCPFX/packaging/SGI/$filename $PKG.sw.base\n";
-    }
     elsif ($filename eq "swat") {
       print IDB "f 4755 root sys usr/samba/bin/$filename $SRCPFX/source/$nextfile $PKG.sw.base preop(\"chroot \$rbase /etc/init.d/samba stop\") exitop(\"chroot \$rbase /usr/samba/scripts/startswat.sh\") removeop(\"chroot \$rbase /sbin/cp /etc/inetd.conf /etc/inetd.conf.O ; chroot \$rbase /sbin/sed -e '/^swat/D' -e '/^#SWAT/D' /etc/inetd.conf.O >/etc/inetd.conf; /etc/killall -HUP inetd || true\")\n";
     }
@@ -368,11 +361,10 @@ sub get_line {
     $_ = <MAKEFILE>;
     chomp;
     s/^\s*/ /;
-    substr($line,$cont,1,$_);
+    substr($line,$cont,1) = $_;
   }
-  $line =~ s/\$\(EXEEXT\)/$EXEEXT/g;
-  $line =~ s/\$\(srcdir\)/$srcdir/g;
-  $line =~ s/\$\(builddir\)/$builddir/g;
+  $line =~ s/\$\(srcdir\)//g;
+  $line =~ s/\$\(builddir\)//g;
   $line =~ s/\$\(\S*\)\s*//g;
   $line =~ s/\s\s*/ /g;
   @line = split(' ',$line);