root/trunk/RHEL4/buildDownloads.sh

Revision 103, 1.0 kB (checked in by jjarrett, 1 year ago)

Updated master build script to allow user to specify Build Path

  • Property svn:executable set to *
Line 
1 #!/bin/sh
2
3 echo -n "Build CLIP Download Release Files[yes/no]? "
4 read -e BUILD
5
6 if [ "$BUILD" = "yes" ] ; then
7         DIR=""
8         if [ -z "$1"] ; then
9                 DIR=$(pwd)/tmp
10         else
11                 DIR="$1"
12         fi
13         echo "Building Downloads..."
14         echo "Define Build Path defaults to '$DIR'."
15         echo -n "To Accept default <ENTER> or type in full path: "
16         read -e PATH
17         if [ -z "$PATH" ] ; then
18                 DIR="$DIR"
19         else
20                 DIR="$PATH"
21         fi
22
23         export DESTDIR="$DIR"
24
25         # "Make all the Binary RPMs..."
26         echo ""
27         echo "Make all the RPMs..."
28         echo ""
29         echo "Make CLIP the RPM..."
30         echo ""
31         make
32         cd selinux-usr
33         echo ""
34         echo "Make Upstream the RPMs..."
35         echo ""
36         make install
37         cd ../refpolicy/build
38         echo ""
39         echo "Make CLIP Policy the RPM..."
40         echo ""
41         make
42         cd ../..
43
44
45         # "Make CLIP RPM..."
46         echo ""
47         echo "Make CLIP RPM..."
48         echo ""
49         ./rpmify
50
51         # "Generate the Complete collect archive..."
52         echo ""
53         echo "Generate the Complete collect archive..."
54         echo ""
55         ./archivify.sh
56
57         echo "Completed..."
58 else
59         if [ -z "$1"] ; then
60                 echo "usage: $0 <build directory>"
61         fi
62 fi
63
64
Note: See TracBrowser for help on using the browser.