[SM-Users] mcdp spell?
Juuso Alasuutari
iuso at sourcemage.org
Fri Apr 27 17:42:19 EDT 2007
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
More information about the SM-Users
mailing list