delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/06/26/09:02:07

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Reply-To: <nhv AT cape DOT com>
From: "Norman Vine" <nhv AT cape DOT com>
To: <cygwin AT cygwin DOT com>
Subject: RE: Python and PIL and rebase, oh my! (update)
Date: Thu, 26 Jun 2003 09:06:11 -0400
Message-ID: <EKEJIKAILPONGGENMBGAOEJADNAA.nhv@cape.com>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
In-Reply-To: <20030626122941.GC1336@tishler.net>
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Importance: Normal
X-Virus-Scanned: Cape.Com VirusScan, no known virus found

------=_NextPart_000_00C0_01C33BC2.300935B0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

Jason Tishler writes:
> 
> On Mon, Jun 23, 2003 at 11:06:18PM -0400, Charles Wilson wrote:
> > 7) rebase, but this time including the PIL dll's
> > 
> > first, set things up to 'trick' rebaseall
> 
> My intention is to enhance rebaseall (and in turn rebase) to support an
> option to specify additional DLLs so it won't be necessary to "trick"
> rebaseall.

attached find my local copy of rebaseall that is modified to
make adding Python extension modules easier

Cheers

Norman


------=_NextPart_000_00C0_01C33BC2.300935B0
Content-Type: application/octet-stream;
	name="rebaseall"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="rebaseall"

#!/bin/bash=0A=
=0A=
#=0A=
# Copyright (c) 2003 Jason Tishler=0A=
#=0A=
# This program is free software; you can redistribute it and/or modify=0A=
# it under the terms of the GNU General Public License as published by=0A=
# the Free Software Foundation; either version 2 of the License, or=0A=
# (at your option) any later version.=0A=
#=0A=
# A copy of the GNU General Public License can be found at=0A=
# http://www.gnu.org/=0A=
#=0A=
# Written by Jason Tishler <jason AT tishler DOT net>=0A=
#=0A=
# Modified by Norman Vine <nhv AT cape DOT com> 2003/06/25=0A=
#  to include /usr/lib/python$VER/site-dir/*.dll=0A=
#         and /usr/local/bin/*.dll=0A=
#=0A=
# $Id: rebaseall,v 1.3 2003/02/07 19:39:33 jt Exp $=0A=
#=0A=
=0A=
# Define constants=0A=
ProgramName=3D$(basename $0)=0A=
ProgramOptions=3D'b:o:v'=0A=
DefaultBaseAddress=3D0x70000000=0A=
DefaultOffset=3D0x10000=0A=
DefaultVerbose=3D=0A=
=0A=
# Define functions=0A=
usage()=0A=
{=0A=
    echo "usage: $ProgramName [-b BaseAddress] [-o Offset] [-v]"=0A=
    exit 1=0A=
}=0A=
=0A=
cleanup()=0A=
{=0A=
    rm -f $TmpFile=0A=
    exit 0=0A=
}=0A=
=0A=
# Set traps=0A=
trap cleanup HUP INT TERM=0A=
=0A=
# Set defaults=0A=
BaseAddress=3D$DefaultBaseAddress=0A=
Offset=3D$DefaultOffset=0A=
Verbose=3D$DefaultVerbose=0A=
=0A=
# Parse command line arguments=0A=
while getopts $ProgramOptions Option $*=0A=
do=0A=
    case $Option in=0A=
    b)=0A=
	BaseAddress=3D$OPTARG;;=0A=
    o)=0A=
	Offset=3D$OPTARG;;=0A=
    v)=0A=
	Verbose=3D-v;;=0A=
    \?)=0A=
	usage;;=0A=
    esac=0A=
done=0A=
=0A=
# Set temp directory=0A=
TmpDir=3D${TMP:-${TEMP:-/tmp}}=0A=
=0A=
# Validate temp directory=0A=
if [ ! -d $TmpDir ]=0A=
then=0A=
    echo "$ProgramName: $TmpDir is not a directory"=0A=
    exit 2=0A=
fi=0A=
if [ ! -w $TmpDir ]=0A=
then=0A=
    echo "$ProgramName: $TmpDir is not writable"=0A=
    exit 2=0A=
fi=0A=
=0A=
# Set temp file=0A=
TmpFile=3D$TmpDir/rebase.lst=0A=
SortFile=3D$TmpDir/rebase.sort=0A=
=0A=
# Create rebase list=0A=
# FIXME: Remove ugly Apache hack ASAP=0A=
zcat /etc/setup/*.lst.gz | grep 'dll$' |=0A=
    sed -e '/cygwin1.dll$/d' -e 's/^/\//' -e 's/apache\/new/apache/' =
>$TmpFile=0A=
=0A=
find /usr/local/bin/ -name '*.dll' >> $TmpFile=0A=
=0A=
_py_version=3D`PYTHON -c 'import sys; print sys.version[0:3]'`=0A=
find /usr/lib/python$_py_version/site-packages -name '*.dll' >> $TmpFile=0A=
=0A=
sort -u --output=3D$SortFile $TmpFile=0A=
=0A=
# Rebase files=0A=
rebase -v $Verbose -d -b $BaseAddress -o $Offset -T $SortFile=0A=
=0A=
# Clean up=0A=
cleanup=0A=


------=_NextPart_000_00C0_01C33BC2.300935B0
Content-Type: text/plain; charset=us-ascii

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

- Raw text -


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