• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Shared code between preinstall/postinstall scripts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Shared code between preinstall/postinstall scripts


  • Subject: Re: Shared code between preinstall/postinstall scripts
  • From: Stephane Sudre <email@hidden>
  • Date: Sat, 31 Aug 2013 17:43:26 +0200

It's possible to do that if you put the script either inside a bundle distribution (and probably aside a flat distribution) but Conor already pointed out the problem with this solution.

What you could do instead is to create an invisible package whose sole purpose in life is to install your scripts in /tmp so that the other packages of the distribution can access them when they are installed.


On Sat, Aug 31, 2013 at 4:12 PM, Philip Petev <email@hidden> wrote:
Yeah, I know about that, but these extra resources can be used only by the preinstall/postintall scripts of that package and the other packages can't. I was thinking of a script, which can be used anytime by any preinstall/postinstall package of any package inside the distribution.


On Sat, Aug 31, 2013 at 3:36 PM, Stephane Sudre <email@hidden> wrote:
You can add extra resources to one package that then can be used by the pre/postinstallation scripts of this very same package (they would be accessible at ./).


On Sat, Aug 31, 2013 at 7:55 AM, Philip Petev <email@hidden> wrote:
Is there a way for all preinstall and postinstall scripts to use a shared code, maybe a script inside the package, which every preinstall/postinstall script could use  ? I have a code, which is present in almost all postinstall scripts in my package and I want to simplify the things.  


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden



--
Packaging Resources - http://s.sudre.free.fr/Packaging.html



--
A false life is equal to death. Be your true self... like me !!!



--
Packaging Resources - http://s.sudre.free.fr/Packaging.html
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Shared code between preinstall/postinstall scripts
      • From: Philip Petev <email@hidden>
References: 
 >Shared code between preinstall/postinstall scripts (From: Philip Petev <email@hidden>)
 >Re: Shared code between preinstall/postinstall scripts (From: Stephane Sudre <email@hidden>)
 >Re: Shared code between preinstall/postinstall scripts (From: Philip Petev <email@hidden>)

  • Prev by Date: Re: Shared code between preinstall/postinstall scripts
  • Next by Date: Re: Shared code between preinstall/postinstall scripts
  • Previous by thread: Re: Shared code between preinstall/postinstall scripts
  • Next by thread: Re: Shared code between preinstall/postinstall scripts
  • Index(es):
    • Date
    • Thread