]> andersk Git - gssapi-openssh.git/blob - bundle/make-bin-bundle
o Update the 2.3 release files.
[gssapi-openssh.git] / bundle / make-bin-bundle
1 #!/bin/sh
2 #
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 #
8 #   2) Run the bin-bundle creation script, passing the platform name to it:
9 #
10 #        ./make-bin-bundle <platform>
11 #
12
13 if [ "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;
16 fi
17
18 if [ "x$1" = "x" ]; then
19     echo "Usage: make-bin-bundle <platform>"
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"
26     exit;
27 fi
28
29 source version.sh
30
31 NAME="gsi_openssh_bundle-$VERSION-$1.tar.gz"
32 XML="gsi_openssh_bundle-bin.xml"
33
34 if [ ! -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
44
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
57 else
58     echo "Please remove output/$NAME before running this script."
59     exit;
60 fi
This page took 0.042061 seconds and 5 git commands to generate.