michael@13: ## michael@13: ## release -- OpenPKG Release Utility michael@428: ## Copyright (c) 2000-2012 OpenPKG GmbH michael@13: ## michael@428: ## This software is property of the OpenPKG GmbH, DE MUC HRB 160208. michael@428: ## All rights reserved. Licenses which grant limited permission to use, michael@428: ## copy, modify and distribute this software are available from the michael@428: ## OpenPKG GmbH. michael@13: ## michael@428: ## THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED michael@13: ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF michael@13: ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. michael@13: ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR michael@13: ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, michael@13: ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT michael@13: ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF michael@13: ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND michael@13: ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, michael@13: ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT michael@13: ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF michael@13: ## SUCH DAMAGE. michael@13: ## michael@13: michael@13: =pod michael@13: michael@13: =head1 NAME michael@13: michael@13: B - OpenPKG Release Utility michael@13: michael@13: =head1 SYNOPSIS michael@13: michael@13: B [B<-F>|B<--fmt> I] michael@13: michael@13: =head1 DESCRIPTION michael@13: michael@13: The B command displays the OpenPKG release tag and michael@13: distribution URL. The release tag uniquely identifies an OpenPKG michael@13: distribution and the distribution URL is the location where the michael@13: distribution packages and indices are stored. michael@13: michael@13: =head1 OPTIONS michael@13: michael@13: =over 4 michael@13: michael@13: =item B<-F>, B<--fmt> I michael@13: michael@13: The output format specification. The argument I is an arbitrary michael@13: string which can contain the special expansion constructs "C<%t>" for michael@13: expanding the release tag, "C<%u>" for expanding the distribution URL michael@428: and "C<\n>" for expanding an embedded newline character. michael@13: The instance UUID information is also availble by expanding michael@13: C<%r> to UUID_REGISTRY, C<%i> to UUID_INSTANCE, C<%p> to UUID_PLATFORM. michael@13: The default I is "C". michael@13: michael@13: =item B<-r>, B<--release> I michael@13: michael@13: The package "C" header value to use for deriving the release michael@13: tag. The values in the F<@l_prefix@/etc/openpkg/release> file and the michael@13: "C" header of the bootstrap package B are ignored if michael@13: this option is used. michael@13: michael@13: =back michael@13: michael@13: =head1 FILES michael@13: michael@13: =over 4 michael@13: michael@13: =item F<@l_prefix@/etc/openpkg/release> michael@13: michael@13: This optional configuration file can be used to explicitly set values michael@13: for the OpenPKG release tag and distribution URLs. It consists of lines michael@13: with variable name/value pairs. The following configuration variables michael@13: are recognized: michael@13: michael@13: =over 4 michael@13: michael@13: =item BI michael@13: michael@13: The default I is automatically derived from the "C" header michael@13: of the OpenPKG bootstrap package B. One usually only sets this michael@13: explicitly to a value if a bootstrap package is used from a foreign michael@13: distribution version. michael@13: michael@13: =item BI michael@13: michael@13: The fully-qualified distribution URL based on either the "C", michael@13: "C" or "C" URL schemes. If I contains a trailing michael@13: "C", this is expanded according to the I value of the B michael@428: variable and the corresponding filesystem layout on C. michael@428: The default I is "C". michael@13: michael@428: =back michael@13: michael@13: =back michael@13: michael@13: =head1 EXAMPLE michael@13: michael@13: $ openpkg release michael@428: OpenPKG-CURRENT http://download.openpkg.org/stacks/current/ michael@13: michael@13: $ openpkg release --fmt=%t michael@13: CURRENT michael@13: michael@13: $ openpkg release --fmt=%u michael@428: http://download.openpkg.org/stacks/current/ michael@13: michael@13: $ openpkg release --fmt="OpenPKG %t is located at:\\n%u" michael@13: OpenPKG CURRENT is located at: michael@428: http://download.openpkg.org/stacks/current/ michael@13: michael@13: $ openpkg release --release=2.5.4 --fmt=%t michael@13: 2.5-RELEASE michael@13: michael@13: $ cat /openpkg/etc/openpkg/release michael@428: TAG=CURRENT michael@428: URL=http://download.example.com/stack/current/ michael@13: michael@13: =head1 SEE ALSO michael@13: michael@13: uuid(8) michael@13: michael@13: =head1 HISTORY michael@13: michael@13: The B command first appeared in B. michael@13: michael@13: =cut michael@13: