delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/05/03/03:00:54

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_NUMERIC_HELO,SPF_HELO_PASS,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Achim Gratz <Stromeko AT NexGo DOT DE>
Subject: Re: [Bug] rebaseall
Date: Thu, 3 May 2012 06:59:57 +0000 (UTC)
Lines: 50
Message-ID: <loom.20120503T085009-974@post.gmane.org>
References: <loom DOT 20120503T080600-849 AT post DOT gmane DOT org>
Mime-Version: 1.0
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

In addition, there should be a "picket fence" in front of those expression(s),
too.  Otherwise they match other lines that are not supposed to be deleted (the
DLL lines are probably safe, but could be changed defensively as well).
 
-----8<---------->8-----
*** c:/Programs/Cygwin/bin/rebaseall.orig	Thu May  3 08:01:47 2012
--- c:/Programs/Cygwin/bin/rebaseall	Thu May  3 08:53:42 2012
***************
*** 202,208 ****
        grep -E "\.($Suffixes)\$" |
        sed -e '/cygwin1\.dll$/d' -e '/cyglsa.*\.dll$/d' \
            -e '/sys-root\/mingw/d' -e 's/^/\//' \
!           -e '/d?ash\.exe$/d' -e '/rebase\.exe$/d' >"${TmpFile}"
      ;;
    mingw|msys)
      for f in /bin /lib
--- 202,208 ----
        grep -E "\.($Suffixes)\$" |
        sed -e '/cygwin1\.dll$/d' -e '/cyglsa.*\.dll$/d' \
            -e '/sys-root\/mingw/d' -e 's/^/\//' \
!           -e '/\/d?ash\.exe$/d' -e '/\/rebase\.exe$/d' >"${TmpFile}"
      ;;
    mingw|msys)
      for f in /bin /lib
***************
*** 210,217 ****
        find $f -type f |
          grep -E "\.($Suffixes)\$" |
  	sed -e '/msys-1\.0.*\.dll$/d' -e '/cygwin1\.dll$/d' \
! 	    -e '/cyglsa.*\.dll$/d' -e '/d?ash\.exe$/d' \
! 	    -e '/rebase\.exe$/d' >>"$TmpFile"
      done
      ;;
  esac
--- 210,217 ----
        find $f -type f |
          grep -E "\.($Suffixes)\$" |
  	sed -e '/msys-1\.0.*\.dll$/d' -e '/cygwin1\.dll$/d' \
! 	    -e '/cyglsa.*\.dll$/d' -e '/\/d\?ash\.exe$/d' \
! 	    -e '/\/rebase\.exe$/d' >>"$TmpFile"
      done
      ;;
  esac
-----8<---------->8-----

Regards,
Achim.





--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019