public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: "Norman Vine" <nhv@cape.com>
To: <cygwin@cygwin.com>
Subject: RE: Python and PIL and rebase, oh my! (update)
Date: Thu, 26 Jun 2003 15:18:00 -0000	[thread overview]
Message-ID: <EKEJIKAILPONGGENMBGAOEJADNAA.nhv@cape.com> (raw)
In-Reply-To: <20030626122941.GC1336@tishler.net>

[-- Attachment #1: Type: text/plain, Size: 480 bytes --]

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


[-- Attachment #2: rebaseall --]
[-- Type: application/octet-stream, Size: 2183 bytes --]

#!/bin/bash

#
# Copyright (c) 2003 Jason Tishler
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# A copy of the GNU General Public License can be found at
# http://www.gnu.org/
#
# Written by Jason Tishler <jason@tishler.net>
#
# Modified by Norman Vine <nhv@cape.com> 2003/06/25
#  to include /usr/lib/python$VER/site-dir/*.dll
#         and /usr/local/bin/*.dll
#
# $Id: rebaseall,v 1.3 2003/02/07 19:39:33 jt Exp $
#

# Define constants
ProgramName=$(basename $0)
ProgramOptions='b:o:v'
DefaultBaseAddress=0x70000000
DefaultOffset=0x10000
DefaultVerbose=

# Define functions
usage()
{
    echo "usage: $ProgramName [-b BaseAddress] [-o Offset] [-v]"
    exit 1
}

cleanup()
{
    rm -f $TmpFile
    exit 0
}

# Set traps
trap cleanup HUP INT TERM

# Set defaults
BaseAddress=$DefaultBaseAddress
Offset=$DefaultOffset
Verbose=$DefaultVerbose

# Parse command line arguments
while getopts $ProgramOptions Option $*
do
    case $Option in
    b)
	BaseAddress=$OPTARG;;
    o)
	Offset=$OPTARG;;
    v)
	Verbose=-v;;
    \?)
	usage;;
    esac
done

# Set temp directory
TmpDir=${TMP:-${TEMP:-/tmp}}

# Validate temp directory
if [ ! -d $TmpDir ]
then
    echo "$ProgramName: $TmpDir is not a directory"
    exit 2
fi
if [ ! -w $TmpDir ]
then
    echo "$ProgramName: $TmpDir is not writable"
    exit 2
fi

# Set temp file
TmpFile=$TmpDir/rebase.lst
SortFile=$TmpDir/rebase.sort

# Create rebase list
# FIXME: Remove ugly Apache hack ASAP
zcat /etc/setup/*.lst.gz | grep 'dll$' |
    sed -e '/cygwin1.dll$/d' -e 's/^/\//' -e 's/apache\/new/apache/' >$TmpFile

find /usr/local/bin/ -name '*.dll' >> $TmpFile

_py_version=`PYTHON -c 'import sys; print sys.version[0:3]'`
find /usr/lib/python$_py_version/site-packages -name '*.dll' >> $TmpFile

sort -u --output=$SortFile $TmpFile

# Rebase files
rebase -v $Verbose -d -b $BaseAddress -o $Offset -T $SortFile

# Clean up
cleanup


[-- Attachment #3: Type: text/plain, Size: 218 bytes --]

--
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/

      reply	other threads:[~2003-06-26 13:01 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-24  5:42 Charles Wilson
2003-06-24 11:37 ` S. L.
2003-06-25  7:14   ` gtk on cygwin [was: Re: Python and PIL and rebase, oh my! (update)] Charles Wilson
2003-06-25 15:15     ` S. L.
2003-06-26 15:09 ` Python and PIL and rebase, oh my! (update) Jason Tishler
2003-06-26 15:18   ` Norman Vine [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=EKEJIKAILPONGGENMBGAOEJADNAA.nhv@cape.com \
    --to=nhv@cape.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).