Author: jfrederic.clere(a)jboss.com
Date: 2007-12-11 06:24:28 -0500 (Tue, 11 Dec 2007)
New Revision: 1170
Modified:
trunk/build/unix/buildsrc.rhel-httpd.sh
Log:
Port to Solaris.
Modified: trunk/build/unix/buildsrc.rhel-httpd.sh
===================================================================
--- trunk/build/unix/buildsrc.rhel-httpd.sh 2007-12-11 11:04:54 UTC (rev 1169)
+++ trunk/build/unix/buildsrc.rhel-httpd.sh 2007-12-11 11:24:28 UTC (rev 1170)
@@ -65,6 +65,9 @@
sum="NONE"
if [ -f ${fname} ]; then
sum=`openssl md5 ${fname} | awk ' { print $2 } '`
+ if [ "x${sum}" = "x" ];then
+ sum=`md5sum ${fname} | awk ' { print $1 } '`
+ fi
fi
if [ ${dir} = ${sum} ]; then
echo "$fname already available"
@@ -81,8 +84,8 @@
# Read the patches list and apply them
WHERE=${native_dist}/tools
mkdir -p ${WHERE}
-grep ^%patch ${rhel_loc}/httpd.spec | sed 's:%:@:' | sed 's: :@ :' | awk
' { print $1 " " $2 } ' > ${WHERE}/patch.cmd
-grep ^Patch ${rhel_loc}/httpd.spec | sed 's:^Patch:@patch:' | sed
's/:/@/' | awk ' { print "s:" $1 ": patch -i @DIR@" $2
":" } ' > ${WHERE}/patch.files
+grep "^%patch" ${rhel_loc}/httpd.spec | sed 's:%:@:' | sed 's: :@
:' | awk ' { print $1 " " $2 } ' > ${WHERE}/patch.cmd
+grep "^Patch" ${rhel_loc}/httpd.spec | sed 's:^Patch:@patch:' | sed
's/:/@/' | awk ' { print "s:" $1 ": patch -i @DIR@" $2
":" } ' > ${WHERE}/patch.files
sed -f ${WHERE}/patch.files ${WHERE}/patch.cmd | sed "s:@DIR@:${rhel_loc}/:"
> ${WHERE}/patch.sh
echo "Applying the rhel patches to ${dirsources}"
chmod a+x ${WHERE}/patch.sh