Author: jfrederic.clere(a)jboss.com
Date: 2011-07-15 12:21:34 -0400 (Fri, 15 Jul 2011)
New Revision: 2814
Modified:
trunk/build/unix/util/jbossweb/files.sh
Log:
Instead changing the java code change the file names.
Modified: trunk/build/unix/util/jbossweb/files.sh
===================================================================
--- trunk/build/unix/util/jbossweb/files.sh 2011-07-15 15:51:44 UTC (rev 2813)
+++ trunk/build/unix/util/jbossweb/files.sh 2011-07-15 16:21:34 UTC (rev 2814)
@@ -5,6 +5,7 @@
do
HTTPFILE=`echo $file | sed 's:-1.0.0-:-2.0.10-dev-:'`
FILE=${HTTPFILE}
+ CHANGETOSL=false
#
http://hudson.qa.jboss.com/hudson/view/Native/job/JBossWebNative-solaris-...
case $FILE in
*hpux-parisc2*)
@@ -16,6 +17,7 @@
BASE=JBossWebNative-hp-ux-ia64
PLATFORM=hpux
CPU=i64
+ CHANGETOSL=true
;;
*linux2-x86*)
BASE=JBossWebNative-linux-i686
@@ -99,6 +101,7 @@
;;
esac
export TYPE
+ export CHANGETOSL
mkdir -p src/main/resources/bin/META-INF/lib/${PLATFORM}
echo $FILE
@@ -114,6 +117,15 @@
unzip -o ../../../../../../$FILE
fi
mv bin/native ${PLATFORM}/${CPU}
+ if $CHANGETOSL; then
+ (cd ${PLATFORM}/${CPU}
+ for file in *.so
+ newfile=`echo $file | sed "s:.sl:.so:"`
+ echo "mv $file $newfile"
+ mv $file $newfile
+ done
+ )
+ fi
rm -rf bin
) || exit 1
done