]> andersk Git - gssapi-openssh.git/blob - bundle/make-src-bundle
o Update to include exitDie fixes.
[gssapi-openssh.git] / bundle / make-src-bundle
1 #!/bin/sh
2 #
3 # Usage:
4 #
5 #   1) Run the src-bundle creation script:
6 #
7 #        ./make-src-bundle
8 #
9
10 source version.sh
11
12 NAME="gsi_openssh_bundle-$VERSION-src.tar.gz"
13 XML="gsi_openssh_bundle-src.xml"
14
15 if [ ! -e output/$NAME ]; then
16     if [ ! -e output/ ]; then
17         mkdir -p output/
18     fi
19
20     if [ ! -e work/ ]; then
21         WORK_SCRIPTCREATED="1"
22         mkdir -p work/
23         cp $XML work/
24     fi
25
26     if [ ! -e work/sources/ ]; then
27         cp -a sources work/sources
28     fi
29
30     cd work/
31     $GPT_LOCATION/sbin/gpt-bundle -srcdir=sources/ -output=$NAME -bv=$VERSION -xml=$XML
32     mv $NAME ../output/
33     cd ../
34
35     if [ "x$WORK_SCRIPTCREATED" != "x" ]; then
36         rm -rf work/
37     fi
38 else
39     echo "Please remove output/$NAME before running this script."
40     exit;
41 fi
This page took 0.046182 seconds and 5 git commands to generate.