]>
Commit | Line | Data |
---|---|---|
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 | # | |
8 | # 2) Run the bin-bundle creation script: | |
9 | # | |
10 | # ./make-bin-bundle | |
f9b8b363 | 11 | # |
277eed3a | 12 | |
73559cc1 | 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 | ||
81c61947 | 18 | source version.sh |
19 | ||
20 | NAME="gsi_openssh_bundle-$VERSION-i686-pc-linux-gnu.tar.gz" | |
73559cc1 | 21 | XML="gsi_openssh_bundle-bin.xml" |
22 | ||
23 | if [ ! -e output/$NAME ]; then | |
24 | if [ ! -e output/ ]; then | |
25 | mkdir -p output/ | |
26 | fi | |
27 | ||
28 | if [ ! -e work/ ]; then | |
29 | WORK_SCRIPTCREATED="1" | |
30 | mkdir -p work/ | |
31 | cp $XML work/ | |
32 | fi | |
277eed3a | 33 | |
73559cc1 | 34 | if [ ! -e work/sources/ ]; then |
35 | cp -a sources work/sources | |
36 | fi | |
37 | ||
38 | cd work/ | |
39 | $GPT_LOCATION/sbin/gpt-bundle -output=$NAME -bv=$VERSION -xml=$XML | |
40 | mv $NAME ../output/ | |
41 | cd ../ | |
42 | ||
43 | if [ "x$WORK_SCRIPTCREATED" != "x" ]; then | |
44 | rm -rf work/ | |
45 | fi | |
658bc8e1 | 46 | else |
73559cc1 | 47 | echo "Please remove output/$NAME before running this script." |
48 | exit; | |
277eed3a | 49 | fi |