wilde: server install-kolab.sh,1.24,1.25

cvs at kolab.org cvs at kolab.org
Mon May 5 11:57:12 CEST 2008


Author: wilde

Update of /kolabrepository/server
In directory doto:/tmp/cvs-serv32735

Modified Files:
	install-kolab.sh 
Log Message:
Removed some bashism to be compatible with Solaris /bin/sh.


Index: install-kolab.sh
===================================================================
RCS file: /kolabrepository/server/install-kolab.sh,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- install-kolab.sh	18 Apr 2008 10:21:29 -0000	1.24
+++ install-kolab.sh	5 May 2008 09:57:10 -0000	1.25
@@ -134,8 +134,8 @@
 	PREFIX="/$TAG"
 fi
 
-R_KID=$(($KID + 1))
-N_KID=$(($R_KID + 1))
+R_KID=`expr $KID + 1`
+N_KID=`expr $R_KID + 1`
 
 if [ -n "$FLAG_CLEAN" -o -n "$FLAG_BDIST" -o -n "$FLAG_SDIST" ]; then
 	if [ -x "$PREFIX/bin/openpkg" ]; then
@@ -144,7 +144,7 @@
 			echo "This will completely wipe your installation in $PREFIX!"
 			echo "Are you certain you want to do that (YES/NO)?"
 			read ANSWER
-			if [ "$ANSWER" == "YES" ]; then
+			if [ "$ANSWER" = "YES" ]; then
 				$PREFIX/bin/openpkg rpm -e `$PREFIX/bin/openpkg rpm -qa` || exit $?
 				echo "Erased OpenPKG environment $PREFIX"
 				exit 0
@@ -237,7 +237,7 @@
 			# We have a source package. Check for a matching binary
 			PLATTAG=`sh "$INSTALLER" -t | tar xf - -O shtool | sh -s platform --type=binary`-$TAG
 			BIN=`basename "$INSTALLER" .src.sh`.$PLATTAG.sh
-			if [ "$BINARY" == "$BIN" ]; then
+			if [ "$BINARY" = "$BIN" ]; then
 				# There is a binary with the correct tag. Install it
 				INSTALL=$BIN
 				echo "Found a binary OpenPKG package with a correct tag. This will be installed now."





More information about the commits mailing list