Skip to Content.
Sympa Menu

sm-discuss - Re: [SM-Discuss] spell name change

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: Eric Sandall <eric AT sandall.us>
  • To: "Mathieu L." <lejatorn AT smgl.homelinux.net>
  • Cc: sm-discuss AT lists.ibiblio.org
  • Subject: Re: [SM-Discuss] spell name change
  • Date: Mon, 31 Oct 2005 11:00:58 -0800 (PST)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon, 31 Oct 2005, Mathieu L. wrote:
Hi all,

I need to change the name of a spell (since the program name changed),
what's the proper procedure from a p4 pov?

Spell to be deprecated: A
New spell: B

You'll want to integ A to B
$ p4 integ A/... B/...

Then submit it so you can modify B
$ p4 submit B/...

Now modify as follows.

Modify the following files in A to run only `true`:
A/{PRE_BUILD,BUILD,INSTALL}
true

Have A autoconflict with itself:
A/CONFLICTS:
conflicts A y

Have A dispel itself when cast:
A/TRIGGERS:
on_cast A dispel_self

Remove all SOURCE* information from A (SOURCE, SOURCE_URL,
SOURCE_DIRECTORY, MD5/GPG/HASH, etc.).

Have A depend only B:
A/DEPENDS:
depends B

Rename the SOURCE in B:
B/DETAILS
SPELL=B
SOURCE=<source from A>
SOURCE_DIRECTORY=<directory from A>

Have B autoconflict with A:
B/CONFLICTS:
conflicts A y

I think that about covers it and don't forget the HISTORY entries. :)

- -sandalle

- --
Eric Sandall | Source Mage GNU/Linux Developer
eric AT sandall.us | http://www.sourcemage.org/
http://eric.sandall.us/ | SysAdmin @ Inst. Shock Physics @ WSU
http://counter.li.org/ #196285 | http://www.shock.wsu.edu/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFDZmnuHXt9dKjv3WERAnYZAJ9barTWJLE3yEC6duEDP8i40vzRzwCfWcTC
93p4kgzM5+F+dPjWuQHiFD0=
=me8+
-----END PGP SIGNATURE-----




Archive powered by MHonArc 2.6.24.

Top of Page