Shipwright::Manual::UsingFlags man page on Fedora

Man page or keyword search:  
man Server   31170 pages
apropos Keyword Search (all sections)
Output format
Fedora logo
[printable version]

Shipwright::Manual::UsUserlContributed Perl DShipwright::Manual::UsingFlags(3)

NAME
       Shipwright::Manual::UsingFlags - Using flags

DESCRIPTION
       Shipwright flags is a method to make a single shipyard to support
       multiple variants of vessels.

       Imagine you want to create a project which requires a database. There
       are several database types you want to support in the same shipyard,
       while you'd like each built vessel to only support one type. (Sometimes
       you have to choose one because some dists will be confused if provided
       with more than one type; e.g.  for RT, you have to supply the database
       type when running ./configure).

       This is a task that you can use Shipwright flags to accomplish.

       For example, say you want to support both mysql and postgresql, and
       you've imported mysql, DBD::mysql, postgresql and DBD::Pg to the
       repository.

       The next step is to mark dists with flags; let's use "mysql" and
       "postgresql" for this example.

	   $ shipwright flags -r ... mysql --set mysql
	   $ shipwright flags -r ... cpan-DBD-mysql --set mysql
	   $ shipwright flags -r ... postgresql --set postgresql
	   $ shipwright flags -r ... cpan-DBD-Pg --set postgresql
	   $ shipwright flags -r ... --mandatory --set mysql,postgresql db

       Flags data is stored in shipwright/flags.yml

       When building, you can then set "--flags" to "mysql" or "postgresql" to
       install support for that database only.

       If a dist needs this info to configure (like RT for example), you'll
       need to customize the build script; see
       Shipwright::Manual::CustomizeBuild for information about how to do
       this.

       If no flags are specified during build, both mysql and postgresql would
       be installed to the vessel. Which one RT chooses to configure for
       depends on its build script.

       If necessary, you can also specify certain flags as being mandatory.
       For example, you can specify that a database flag is mandatory; if no
       flag labelled "db" is specified when invoking the build script, the
       first one is used as a default (mysql in this case) rather than the
       repository being built with no flags. This allows shipyards to support
       different variants or versions of a program.

       Note:

       Shipwright will automatically add "default" to "--flags", and if a dist
       has no flags set (i.e. it does not appear in shipwright/flags.yml), it
       will be given the "default" flag and will be installed by default.

SEE ALSO
       Shipwright, Shipwright::Manual

AUTHORS
       sunnavy	"<sunnavy@bestpractical.com>"

LICENCE AND COPYRIGHT
       Shipwright is Copyright 2007-2011 Best Practical Solutions, LLC.

       This program is free software; you can redistribute it and/or modify it
       under the same terms as Perl itself.

perl v5.14.1			  2011-04-29 Shipwright::Manual::UsingFlags(3)
[top]

List of man pages available for Fedora

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net