]> andersk Git - gssapi-openssh.git/blame - bundle/make-src-bundle
o Update the bundle scripts so they don't muck around with the CWD.
[gssapi-openssh.git] / bundle / make-src-bundle
CommitLineData
277eed3a 1#!/bin/sh
2#
7e64a5bc 3# Usage:
4#
84c341f1 5# 1) Run the src-bundle creation script:
7e64a5bc 6#
84c341f1 7# ./make-src-bundle
f9b8b363 8#
277eed3a 9
81c61947 10source version.sh
11
12NAME="gsi_openssh_bundle-$VERSION-src.tar.gz"
73559cc1 13XML="gsi_openssh_bundle-src.xml"
277eed3a 14
73559cc1 15if [ ! -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
38else
39 echo "Please remove output/$NAME before running this script."
40 exit;
277eed3a 41fi
This page took 0.141624 seconds and 5 git commands to generate.