]> andersk Git - gssapi-openssh.git/blame - bundle/make-bin-bundle
o Update to include exitDie fixes.
[gssapi-openssh.git] / bundle / make-bin-bundle
CommitLineData
277eed3a 1#!/bin/sh
f9b8b363 2#
7e64a5bc 3# Usage:
4#
5# 1) Verify that your GLOBUS_LOCATION is set to the installation from which you
6# wish to create a binary bundle.
7#
fe66ebd1 8# 2) Run the bin-bundle creation script, passing the platform name to it:
7e64a5bc 9#
fe66ebd1 10# ./make-bin-bundle <platform>
f9b8b363 11#
277eed3a 12
73559cc1 13if [ "x$GLOBUS_LOCATION" = "x" ]; then
14 echo "Please set GLOBUS_LOCATION to the location from which you wish to make the binary bundle."
15 exit;
16fi
17
fe66ebd1 18if [ "x$1" = "x" ]; then
19 echo "Usage: make-bin-bundle <platform>"
66d77a39 20 echo "Example platforms:"
21 echo " i686-pc-linux-gnu-gcc32"
22 echo " sparc-sun-solaris2.8-vendorcc32"
23 echo " ia64-unknown-linux-gnu-gcc64"
24 echo " mips-sgi-irix6.5-vendorcc32"
25 echo " powerpc-ibm-aix5.1.0.0-vendorcc32"
fe66ebd1 26 exit;
27fi
28
81c61947 29source version.sh
30
fe66ebd1 31NAME="gsi_openssh_bundle-$VERSION-$1.tar.gz"
73559cc1 32XML="gsi_openssh_bundle-bin.xml"
33
34if [ ! -e output/$NAME ]; then
35 if [ ! -e output/ ]; then
36 mkdir -p output/
37 fi
38
39 if [ ! -e work/ ]; then
40 WORK_SCRIPTCREATED="1"
41 mkdir -p work/
42 cp $XML work/
43 fi
277eed3a 44
73559cc1 45 if [ ! -e work/sources/ ]; then
46 cp -a sources work/sources
47 fi
48
49 cd work/
50 $GPT_LOCATION/sbin/gpt-bundle -output=$NAME -bv=$VERSION -xml=$XML
51 mv $NAME ../output/
52 cd ../
53
54 if [ "x$WORK_SCRIPTCREATED" != "x" ]; then
55 rm -rf work/
56 fi
658bc8e1 57else
73559cc1 58 echo "Please remove output/$NAME before running this script."
59 exit;
277eed3a 60fi
This page took 0.049584 seconds and 5 git commands to generate.