(file) Return to rpmBuild CVS log (file) (dir) Up to [Pegasus] / pegasus

 1 sage  1.1 #!/bin/sh
 2 sage  1.3 if test `whoami` != 'root'; then
 3             echo "You have to be root to build the pegasus rpm"
 4             exit
 5           fi
 6           #
 7 sage  1.1 if test "$PEGASUS_PLATFORM" != LINUX_IX86_GNU; then
 8             echo "Please set PEGASUS_PLATFORM to LINUX_IX86_GNU"
 9             echo "either using export PEGASUS_PLATFORM=LINUX_IX86_GNU for ksh and bash"
10             echo "or set PEGASUS_PLATFORM=LINUX_IX86_GNU csh and tcsh"
11             exit;
12           fi
13           #
14           # assume that we have been started in PEGASUS_ROOT
15           # and that the basename is pegasus
16           #
17           if test -z $PEGASUS_ROOT; then
18             echo "Please make sure that PEGASUS_ROOT points to the current"
19             echo "location of the Pegasus sources"
20             exit
21           fi
22           #
23 mike  1.4 if test "$PEGASUS_CONCURRENT" != "yes" ; then
24             echo "Please set PEGASUS_CONCURRENT to yes"
25             exit
26           fi
27           #
28 sage  1.1 PEGASUS_BASE=`basename $PEGASUS_ROOT`
29           if test "$PEGASUS_BASE" != "pegasus-1.0"; then
30             echo "I'm going to make sure that pegasus is found in */pegasus-1.0/ "
31             cp -a $PEGASUS_ROOT $PEGASUS_ROOT/../pegasus-1.0
32             export PEGASUS_ROOT=$PEGASUS_ROOT/../pegasus-1.0
33           fi
34           # pack the entire source, but first clean it up
35           #
36           export PEGASUS_HOME=$PEGASUS_ROOT
37           cd $PEGASUS_HOME
38           if make clean;then
39             # Clean up the stuff make clean forgets
40             rm -rf repository
41             rm -rf obj
42             rm -f cgi/cgi-bin/*.so
43             echo "Sources are now cleaned up"
44           else
45             echo "Cleaning up the sources (make clean) hasn't been successful"
46             exit 
47           fi
48           #
49 sage  1.1 #
50           # tar it and copy it into /usr/src/packages/SOURCES
51           #
52           pushd ..
53           if tar cfz /usr/src/packages/SOURCES/pegasus-1.0.tar.gz pegasus-1.0 ;then
54             echo "/usr/src/packages/SOURCES/pegasus-1.0.tar.gz created"
55           else
56             echo "Didn't succeed in tarring"
57             exit
58           fi
59           popd
60           #
61           # 
62           #
63           chmod +x rpm/pegasus
64           if cp rpm/pegasus-1.0.spec /usr/src/packages/SPECS/; then
65             echo "Copied spec file"
66           else
67             echo "Spec file missing ???"
68             exit
69           fi
70 sage  1.1 #
71           #
72           #
73           echo "Start building ...."
74           if rpm -ba /usr/src/packages/SPECS/pegasus-1.0.spec; then
75             echo "Package built as /usr/src/packages/RPMS/pegasus-1.0.rpm"
76           else
77             echo "Build error"
78             exit
79           fi
80           echo "Finished"

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2