Author: jfrederic.clere(a)jboss.com
Date: 2007-12-13 03:38:50 -0500 (Thu, 13 Dec 2007)
New Revision: 1195
Added:
trunk/build/unix/util/builddep.linux2.sh
trunk/build/unix/util/builddep.solaris.sh
Modified:
trunk/build/unix/build.sh
trunk/build/unix/util/builddep.sh
Log:
As the builddep stuff is experimental makes the default one doing nothing and
create a solaris and linux2 ones (note the linux2 one is only for rpm based
distribution.
Modified: trunk/build/unix/build.sh
===================================================================
--- trunk/build/unix/build.sh 2007-12-13 08:27:59 UTC (rev 1194)
+++ trunk/build/unix/build.sh 2007-12-13 08:38:50 UTC (rev 1195)
@@ -816,4 +816,4 @@
)
# generate a list of dependencies
-override ${build_top}/util/builddep $build_output_dir
${PACKAGE}.${build_version}.${BUILD_SYS}.${BUILD_CPU}.depends
+override ${build_top}/util/builddep $build_output_dir
${PACKAGE}.${build_version}.${BUILD_SYS}.${BUILD_CPU}.depends ${build_working_dir}
Added: trunk/build/unix/util/builddep.linux2.sh
===================================================================
--- trunk/build/unix/util/builddep.linux2.sh (rev 0)
+++ trunk/build/unix/util/builddep.linux2.sh 2007-12-13 08:38:50 UTC (rev 1195)
@@ -0,0 +1,44 @@
+#!/bin/sh
+# Copyright(c) 2007 Red Hat Middleware, LLC,
+# and individual contributors as indicated by the @authors tag.
+# See the copyright.txt in the distribution for a
+# full listing of individual contributors.
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library in the file COPYING.LIB;
+# if not, write to the Free Software Foundation, Inc.,
+# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
+#
+# @author Jean-Frederic Clere
+#
+
+# Download the sources. It guess how to do it.
+# $1: binary build directory.
+# $2: ouput file.
+# $3: work directory location
+LD_LIBRARY_PATH=$1
+for dir in `find $1 -name "*.so" -exec dirname {} \;`
+do
+ LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$dir
+done
+echo "LD_LIBRARY_PATH: $LD_LIBRARY_PATH"
+export LD_LIBRARY_PATH
+
+find $1 -name "*.${so_extension}" -exec ldd {} \; > $3/$2.all
+cat $3/$2.all | awk 'NF==4 { print $3 } ' | sort -u | grep -v "$1" >
$3/$2
+> $3/$2.tmp
+for file in `cat $3/$2`
+do
+ rpm -qf $file >> $3/$2.tmp
+done
+sort -u $3/$2.tmp > $3/$2.pkg
Property changes on: trunk/build/unix/util/builddep.linux2.sh
___________________________________________________________________
Name: svn:executable
+ *
Modified: trunk/build/unix/util/builddep.sh
===================================================================
--- trunk/build/unix/util/builddep.sh 2007-12-13 08:27:59 UTC (rev 1194)
+++ trunk/build/unix/util/builddep.sh 2007-12-13 08:38:50 UTC (rev 1195)
@@ -25,26 +25,5 @@
# Download the sources. It guess how to do it.
# $1: binary build directory.
# $2: ouput file.
-LD_LIBRARY_PATH=$1
-for dir in `find $1 -name "*.${so_extension}" -exec dirname {} \;`
-do
- LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$dir
-done
-echo "LD_LIBRARY_PATH: $LD_LIBRARY_PATH"
-export LD_LIBRARY_PATH
-
-find $1 -name "*.${so_extension}" -exec ldd {} \; > $2.all
-cat $2.all | awk 'NF==4 { print $3 } ' | sort -u | grep -v "$1" >
$2
-> $2.tmp
-for file in `cat $2`
-do
- case ${BUILD_SYS} in
- linux2)
- rpm -qf $file >> $2.tmp
- ;;
- solaris)
- pkgchk -l -p $file | grep "^ " >> $2.tmp
- ;;
- esac
-done
-sort -u $2.tmp > $2.pkg
+# $3: work directory.
+echo "Not yet supported in this platform"
Added: trunk/build/unix/util/builddep.solaris.sh
===================================================================
--- trunk/build/unix/util/builddep.solaris.sh (rev 0)
+++ trunk/build/unix/util/builddep.solaris.sh 2007-12-13 08:38:50 UTC (rev 1195)
@@ -0,0 +1,44 @@
+#!/bin/sh
+# Copyright(c) 2007 Red Hat Middleware, LLC,
+# and individual contributors as indicated by the @authors tag.
+# See the copyright.txt in the distribution for a
+# full listing of individual contributors.
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library in the file COPYING.LIB;
+# if not, write to the Free Software Foundation, Inc.,
+# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
+#
+# @author Jean-Frederic Clere
+#
+
+# Download the sources. It guess how to do it.
+# $1: binary build directory.
+# $2: ouput file.
+# $3: work directory.
+LD_LIBRARY_PATH=$1
+for dir in `find $1 -name "*.${so_extension}" -exec dirname {} \;`
+do
+ LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$dir
+done
+echo "LD_LIBRARY_PATH: $LD_LIBRARY_PATH"
+export LD_LIBRARY_PATH
+
+find $1 -name "*.${so_extension}" -exec ldd {} \; > $3/$2.all
+cat $3/$2.all | awk 'NF==4 { print $3 } ' | sort -u | grep -v "$1" >
$3/$2
+> $3/$2.tmp
+for file in `cat $3/$2`
+do
+ pkgchk -l -p $file | grep "^ " >> $3/$2.tmp
+done
+sort -u $3/$2.tmp > $3/$2.pkg
Property changes on: trunk/build/unix/util/builddep.solaris.sh
___________________________________________________________________
Name: svn:executable
+ *