Author: sahan
Date: Sun Jun 10 07:48:18 2007
New Revision: 545882
URL: http://svn.apache.org/viewvc?view=rev&rev=545882
Log:
Making the deploy.sh portable
Modified:
webservices/rampart/trunk/c/samples/secpolicy/deploy.sh
Modified: webservices/rampart/trunk/c/samples/secpolicy/deploy.sh
URL:
http://svn.apache.org/viewvc/webservices/rampart/trunk/c/samples/secpolicy/deploy.sh?view=diff&rev=545882&r1=545881&r2=545882
==============================================================================
--- webservices/rampart/trunk/c/samples/secpolicy/deploy.sh (original)
+++ webservices/rampart/trunk/c/samples/secpolicy/deploy.sh Sun Jun 10 07:48:18
2007
@@ -11,16 +11,26 @@
#COPYING THE RELEVENT POLICY FILES TO CLIENT AND SERVER
#copy client policy file to CLIENT_REPO
-echo "Copying client policy files to $CLIENT_REPO"
-cp $1/client-policy.xml $CLIENT_REPO/policy.xml
+#echo "Copying client policy files to $CLIENT_REPO"
+#cp $1/client-policy.xml $CLIENT_REPO/policy.xml
echo "Replacing settings in policy files."
-sed -i 's,AXIS2C_HOME,'$AXIS2C_HOME',g' $CLIENT_REPO/policy.xml
+if [ `uname -s` = Darwin ]
+then
+ sed -e 's,AXIS2C_HOME,'$AXIS2C_HOME',g' -e 's,\.so,\.dylib,g'
$1/client-policy.xml > $CLIENT_REPO/policy.xml
+else
+ sed 's,AXIS2C_HOME,'$AXIS2C_HOME',g' $1/client-policy.xml >
$CLIENT_REPO/policy.xml
+fi
#copy services.xml to SERVICE_HOME
-echo "Copying services.xml to $SERVICE_HOME"
-cp $1/services.xml $SERVICE_HOME/services.xml
+#echo "Copying services.xml to $SERVICE_HOME"
+#cp $1/services.xml $SERVICE_HOME/services.xml
echo "Replacing settings in Configuration files."
-sed -i 's,AXIS2C_HOME,'$AXIS2C_HOME',g' $SERVICE_HOME/services.xml
+if [ `uname -s` = Darwin ]
+then
+ sed -e 's,AXIS2C_HOME,'$AXIS2C_HOME',g' -e 's,\.so,\.dylib,g'
$1/services.xml > $SERVICE_HOME/services.xml
+else
+ sed 's,AXIS2C_HOME,'$AXIS2C_HOME',g' $1/services.xml >
$SERVICE_HOME/services.xml
+fi