JBoss Native SVN: r1344 - trunk/build/unix.
by jbossnative-commits@lists.jboss.org
Author: jfrederic.clere(a)jboss.com
Date: 2008-02-04 06:24:53 -0500 (Mon, 04 Feb 2008)
New Revision: 1344
Modified:
trunk/build/unix/build.sh
trunk/build/unix/package.list
Log:
Arrange the package.list syntax.
Modified: trunk/build/unix/build.sh
===================================================================
--- trunk/build/unix/build.sh 2008-02-04 09:53:00 UTC (rev 1343)
+++ trunk/build/unix/build.sh 2008-02-04 11:24:53 UTC (rev 1344)
@@ -45,14 +45,14 @@
has_posix_tar=true
# parameters
-has_apr=true
-has_apu=true
-has_api=true
-has_openssl=true
-has_zlib=true
-has_jk=true
-has_iconv=true
-has_expat=true
+has_apr=false
+has_apu=false
+has_api=false
+has_openssl=false
+has_zlib=false
+has_jk=false
+has_iconv=false
+has_expat=false
build_api=false
build_zlib=false
@@ -174,43 +174,64 @@
export patch
# Read tag and version of subcomponent/dependencies.
-parg=`grep -v '^#' ${package_list} | grep "^$PACKAGE|" | grep "|$build_version|"`
-svn_tagname=`echo "${parg}" | ${awk} -F'|' '{print $3}'`
-apr_version=`echo "${parg}" | ${awk} -F'|' '{print $4}'`
-apu_version=`echo "${parg}" | ${awk} -F'|' '{print $5}'`
-api_version=`echo "${parg}" | ${awk} -F'|' '{print $6}'`
-ssl_version=`echo "${parg}" | ${awk} -F'|' '{print $7}'`
-zlib_version=`echo "${parg}" | ${awk} -F'|' '{print $8}'`
-jk_version=`echo "${parg}" | ${awk} -F'|' '{print $9}'`
-iconv_version=`echo "${parg}" | ${awk} -F'|' '{print $10}'`
-expat_version=`echo "${parg}" | ${awk} -F'|' '{print $11}'`
+parg=`grep -v '^#' ${package_list} | grep "^$PACKAGE|" | grep "|$build_version|" | sed 's:|: :g'`
-if [ "x" = "x${zlib_version}" ]; then
- has_zlib=false
-fi
-if [ "x" = "x${ssl_version}" ]; then
- has_openssl=false
-fi
-if [ "x" = "x${apr_version}" ]; then
- has_apr=false
-fi
-if [ "x" = "x${apu_version}" ]; then
- has_apu=false
-fi
-if [ "x" = "x${api_version}" ]; then
- has_api=false
-fi
-if [ "x" = "x${jk_version}" ]; then
- has_jk=false
-else
- export jk_version
-fi
-if [ "x" = "x${iconv_version}" ]; then
- has_iconv=false
-fi
-if [ "x" = "x${expat_version}" ]; then
- has_expat=false
-fi
+i=0
+for arg in `echo "${parg}"`
+do
+ i=`expr $i + 1`
+ if [ $i -eq 3 ]; then
+ svn_tagname=$arg
+ fi
+ if [ $i -gt 3 ]; then
+ case $arg in
+ apr:*)
+ apr_version=`echo "${arg}" | ${awk} -F':' '{print $3}'`
+ apr_type=`echo "${arg}" | ${awk} -F':' '{print $2}'`
+ has_apr=true
+ export apr_version
+ ;;
+ apu:*)
+ apu_version=`echo "${arg}" | ${awk} -F':' '{print $3}'`
+ apu_type=`echo "${arg}" | ${awk} -F':' '{print $2}'`
+ has_apu=true
+ export apu_version
+ ;;
+ api:*)
+ api_version=`echo "${arg}" | ${awk} -F':' '{print $3}'`
+ api_type=`echo "${arg}" | ${awk} -F':' '{print $2}'`
+ has_api=true
+ export api_version
+ ;;
+ ssl:*)
+ ssl_version=`echo "${arg}" | ${awk} -F':' '{print $3}'`
+ ssl_type=`echo "${arg}" | ${awk} -F':' '{print $2}'`
+ has_ssl=true
+ ;;
+ zlib:*)
+ zlib_version=`echo "${arg}" | ${awk} -F':' '{print $3}'`
+ zlib_type=`echo "${arg}" | ${awk} -F':' '{print $2}'`
+ has_zlib=true
+ ;;
+ jk:*)
+ jk_version=`echo "${arg}" | ${awk} -F':' '{print $3}'`
+ jk_type=`echo "${arg}" | ${awk} -F':' '{print $2}'`
+ has_jk=true
+ export jk_version
+ ;;
+ iconv:*)
+ iconv_version=`echo "${arg}" | ${awk} -F':' '{print $3}'`
+ iconv_type=`echo "${arg}" | ${awk} -F':' '{print $2}'`
+ has_iconv=true
+ ;;
+ expat:*)
+ expat_version=`echo "${arg}" | ${awk} -F':' '{print $3}'`
+ expat_type=`echo "${arg}" | ${awk} -F':' '{print $2}'`
+ has_expat=true
+ ;;
+ esac
+ fi
+done
# Get plaform information
so_extension=so
Modified: trunk/build/unix/package.list
===================================================================
--- trunk/build/unix/package.list 2008-02-04 09:53:00 UTC (rev 1343)
+++ trunk/build/unix/package.list 2008-02-04 11:24:53 UTC (rev 1344)
@@ -1,13 +1,13 @@
# list of the packages
# add new versions of package after existing ones.
-jboss-native|2.0.1|TOMCAT_NATIVE_1_1_11|1.2.9|1.2.8|1.2.1|0.9.8e|1.2.3
-jboss-native|2.0.2|TOMCAT_NATIVE_1_1_11|1.2.9|1.2.8|1.2.1|0.9.8e|1.2.3
-jboss-native|2.0.3|TOMCAT_NATIVE_1_1_12|1.2.8|1.2.8|1.2.1|0.9.8e|1.2.3
-jboss-native|2.0.4-dev|trunk|1.2.8|1.2.8|1.2.1|0.9.8e|1.2.3
+jboss-native|2.0.1|TOMCAT_NATIVE_1_1_11|apr:v:1.2.9|apu:v:1.2.8|api:v:1.2.1|ssl:v:0.9.8e|zlib:v:1.2.3
+jboss-native|2.0.2|TOMCAT_NATIVE_1_1_11|apr:v:1.2.9|apu:v:1.2.8|api:v:1.2.1|ssl:v:0.9.8e|zlib:v:1.2.3
+jboss-native|2.0.3|TOMCAT_NATIVE_1_1_12|apr:v:1.2.8|apu:v:1.2.8|api:v:1.2.1|ssl:v:0.9.8e|zlib:v:1.2.3
+jboss-native|2.0.4-dev|trunk|apr:v:1.2.8|apu:v:1.2.8|api:v:1.2.1|ssl:v:0.9.8e|zlib:v:1.2.3
# SIGHT
-jboss-sight|1.0.0|trunk|1.2.9|1.2.8|1.2.1
-jboss-sight|1.0.1|trunk|1.2.8|1.2.8|1.2.1
-jboss-sight|1.0.2|trunk|1.2.8|1.2.8|1.2.1
+jboss-sight|1.0.0|trunk|apr:v:1.2.9|apu:v:1.2.8|api:v:1.2.1
+jboss-sight|1.0.1|trunk|apr:v:1.2.8|apu:v:1.2.8|api:v:1.2.1
+jboss-sight|1.0.2|trunk|apr:v:1.2.8|apu:v:1.2.8|api:v:1.2.1
# httpd
jboss-httpd|0.0.1|2.2.6
-rhel-httpd|0.0.1|httpd-2_2_3-11_el5|||1.2.1||1.2.3|1.2.26|1.11|1.95.8
+rhel-httpd|0.0.1|httpd-2_2_3-11_el5_1_3|apr:r:apr-1_2_7-11|apu:r:apr-util-1_2_7-7_el5|api:v:1.2.1|ssl:v0.9.8e|zlib:v:1.2.3|jk:v:1.2.26|iconv:v:1.11|expat:v:1.95.8