]>
Commit | Line | Data |
---|---|---|
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 | 10 | source version.sh |
11 | ||
12 | NAME="gsi_openssh_bundle-$VERSION-src.tar.gz" | |
73559cc1 | 13 | XML="gsi_openssh_bundle-src.xml" |
277eed3a | 14 | |
73559cc1 | 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/ | |
ced96239 | 31 | $GPT_LOCATION/sbin/gpt-bundle -nodeps -nosetups -srcdir=sources/ -output=$NAME -bv=$VERSION -xml=$XML |
73559cc1 | 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; | |
277eed3a | 41 | fi |