openpkg/install.sh

changeset 13
cb59d6afeb61
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/openpkg/install.sh	Tue Jan 06 23:40:39 2009 +0100
     1.3 @@ -0,0 +1,45 @@
     1.4 +#!@l_prefix@/lib/openpkg/bash
     1.5 +##
     1.6 +##  install -- OpenPKG Tool Chain "install" command (BOOSTRAP VERSION ONLY)
     1.7 +##  Copyright (c) 2000-2007 OpenPKG Foundation e.V. <http://openpkg.net/>
     1.8 +##  Copyright (c) 2000-2007 Ralf S. Engelschall <http://engelschall.com/>
     1.9 +##
    1.10 +##  Permission to use, copy, modify, and distribute this software for
    1.11 +##  any purpose with or without fee is hereby granted, provided that
    1.12 +##  the above copyright notice and this permission notice appear in all
    1.13 +##  copies.
    1.14 +##
    1.15 +##  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
    1.16 +##  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
    1.17 +##  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
    1.18 +##  IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
    1.19 +##  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
    1.20 +##  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
    1.21 +##  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
    1.22 +##  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
    1.23 +##  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
    1.24 +##  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
    1.25 +##  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    1.26 +##  SUCH DAMAGE.
    1.27 +##
    1.28 +
    1.29 +##
    1.30 +##  This command emulates the "openpkg install openpkg-tools" command
    1.31 +##  in order to bootstrap the installation of the OpenPKG Tool Chain.
    1.32 +##
    1.33 +
    1.34 +#   sanity check usage
    1.35 +if [ $# -eq 1 -a ".$1" = ".openpkg-tools" ]; then
    1.36 +    :
    1.37 +else
    1.38 +    echo "openpkg:ERROR: still not available functionality \"install $*\""                        1>&2
    1.39 +    echo "openpkg:INFO: This functionality is provided by the \"openpkg-tools\" package only!"    1>&2
    1.40 +    echo "openpkg:INFO: Run the command \"$OPENPKG_PREFIX/bin/openpkg install openpkg-tools\" to" 1>&2
    1.41 +    echo "openpkg:INFO: bootstrap the \"openpkg-tools\" package for additional functionality."    1>&2
    1.42 +    echo "openpkg:INFO: This bootstrap version only supports this particular install command."    1>&2
    1.43 +    exit 1
    1.44 +fi
    1.45 +
    1.46 +#   pass-through operation to "openpkg build" tool
    1.47 +$OPENPKG_PREFIX/bin/openpkg build openpkg-tools | sh
    1.48 +

mercurial