Skip to Content.
Sympa Menu

sm-users - Re: [SM-Users] mcdp spell?

sm-users AT lists.ibiblio.org

Subject: Sourcemage Users List

List archive

Chronological Thread  
  • From: Juuso Alasuutari <iuso AT sourcemage.org>
  • To: sm-users AT lists.ibiblio.org
  • Subject: Re: [SM-Users] mcdp spell?
  • Date: Sat, 28 Apr 2007 00:42:19 +0300

Eric Sandall wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Javier Vasquez wrote:
<snip>
Looking at the previous description, I guess the patch instruction
needs to go under PRE_BUILD. Only thing is that this is a personal
patch, and I don't have any http/ftp server. I'll see if the patch is
accepted by the mcdp developer, and if not, well, I wouldn't know if
the spell I can come up with will be of any use for others (good thing
is that when browsing about "sourcemage mcdp", I found nothing, so
most probably there's no one interested on mcdp but me). At any rate
I'll try writing one and post it here if I get it to work. I'm just
new to this, :).

You can include the patch in the spell directory. In PRE_BUILD, you
would reference it like this:

- ----
patch -p1 < $SCRIPT_DIRECTORY/uninstall-fix.patch
- ----

Where $SCRIPT_DIRECTORY refers to the location of the spell files. It's
also preferable to submit patches upstream (as you said you'd do ;)) so
that we don't have to keep patching the program.

Paranoid as I am, I'd quote the path like so:

patch -p1 < "$SCRIPT_DIRECTORY/uninstall-fix.patch"

...just to make sure that it'll still work if $SCRIPT_DIRECTORY contains whitespaces (although that is a very rare occasion). :)

J




Archive powered by MHonArc 2.6.24.

Top of Page