[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#374778: dpkg-cross: please make command-line rewriting more visible



I agree that it should be more visible.
I don't like idea to depend on DH_* variable because dpkg-cross is by no 
means related to debhelper.
However, I don't see reasons not to print actual executed command-line if 
it differs from original. 

Please try this patch - is this better? If yes, I'll commit it.

RCS file: /cvsroot/dpkg-cross/dpkg-cross/gccross,v
retrieving revision 1.6
diff -u -r1.6 gccross
--- gccross     6 Jan 2005 11:07:17 -0000       1.6
+++ gccross     21 Jun 2006 20:25:23 -0000
@@ -90,6 +90,9 @@
                @execlist_ = ($pathname_, @newARGV);
        }
        $ENV{'GCCROSS_SKIP_PATH'} = join(":", @skip_);
+       if (@ARGV != @newARGV) {
+               print "+ " . join(" ", @execlist_) . "\n";
+       }
        exec @execlist_;
        # This point is reached only if exec fails.
        # Print a warning and try other pathnames in this case.

Attachment: pgpur91PUGVEl.pgp
Description: PGP signature


Reply to: