couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nsla...@apache.org
Subject svn commit: r667972 - in /incubator/couchdb/trunk: bin/couchdb.tpl.in bin/couchjs.tpl.in configure.ac
Date Sun, 15 Jun 2008 17:00:59 GMT
Author: nslater
Date: Sun Jun 15 10:00:58 2008
New Revision: 667972

URL: http://svn.apache.org/viewvc?rev=667972&view=rev
Log:
more portability changes for OpenSolaris

Modified:
    incubator/couchdb/trunk/bin/couchdb.tpl.in
    incubator/couchdb/trunk/bin/couchjs.tpl.in
    incubator/couchdb/trunk/configure.ac

Modified: incubator/couchdb/trunk/bin/couchdb.tpl.in
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/bin/couchdb.tpl.in?rev=667972&r1=667971&r2=667972&view=diff
==============================================================================
--- incubator/couchdb/trunk/bin/couchdb.tpl.in (original)
+++ incubator/couchdb/trunk/bin/couchdb.tpl.in Sun Jun 15 10:00:58 2008
@@ -37,7 +37,7 @@
 HEART_COMMAND="%bindir%/%couchdb_command_name% -k"
 HEART_BEAT_TIMEOUT=11
 
-basename=$(basename $0)
+basename=`basename $0`
 
 display_version () {
     # Display version and copyright information.
@@ -105,19 +105,19 @@
 _load_configuration () {
     # Load ini configuration and overwrite default variables.
 
-    dbrootdir_ini_value=$(awk -F = "/^DbRootDir=/{print \$2}" < $INI_FILE)
+    dbrootdir_ini_value=`awk -F = "/^DbRootDir=/{print \$2}" < $INI_FILE`
     if test -n "$dbrootdir_ini_value"; then
         LIB_DIRECTORY=$dbrootdir_ini_value
     fi
-    logfile_ini_value=$(awk -F = "/^LogFile=/{print \$2}" < $INI_FILE)
+    logfile_ini_value=`awk -F = "/^LogFile=/{print \$2}" < $INI_FILE`
     if test -n "$logfile_ini_value"; then
-        LOG_DIRECTORY=$(dirname $logfile_ini_value)
+        LOG_DIRECTORY=`dirname $logfile_ini_value`
     fi
 }
 
 _get_pid () {
     if test -f $PID_FILE; then
-        PID=$(cat $PID_FILE)
+        PID=`cat $PID_FILE`
     fi
     echo $PID
 }
@@ -125,7 +125,7 @@
 check_status () {
     # Check the status of the running Apache CouchDB process.
 
-    PID=$(_get_pid)
+    PID=`_get_pid`
     if test -n "$PID"; then
         if kill -0 $PID 2> /dev/null; then
             echo "Apache CouchDB is running as process $PID. Time to relax."
@@ -154,14 +154,14 @@
         exit $SCRIPT_ERROR
     fi
     message_prefix="Apache CouchDB needs write permission on data file"
-    for file in $(find $LIB_DIRECTORY -type f); do
+    for file in `find $LIB_DIRECTORY -type f`; do
         if test ! -w $file; then
             echo "$message_prefix: $file" >&2
             exit $SCRIPT_ERROR
         fi
     done
     message_prefix="Apache CouchDB needs write permission on log file"
-    for file in $(find $LOG_DIRECTORY -type f); do
+    for file in `find $LOG_DIRECTORY -type f`; do
         if test ! -w $file; then
             echo "$message_prefix: $file" >&2
             exit $SCRIPT_ERROR
@@ -239,9 +239,9 @@
             while true; do
                 export HEART_COMMAND
                 export HEART_BEAT_TIMEOUT
-                $(eval $command -pidfile $PID_FILE -heart \
-                    > $STDOUT_FILE 2> $STDERR_FILE) || true
-                PID=$(_get_pid)
+                `eval $command -pidfile $PID_FILE -heart \
+                    > $STDOUT_FILE 2> $STDERR_FILE` || true
+                PID=`_get_pid`
                 if test -n "$PID"; then
                     if kill -0 $PID 2> /dev/null; then
                         # Found an existing process, do not respawn.
@@ -273,7 +273,7 @@
 stop_couchdb () {
     # Send SIGHUP to the running Apache CouchDB process.
 
-    PID=$(_get_pid)
+    PID=`_get_pid`
     if test -n "$PID"; then
         # Clean up PID file or leave stale for respawn.
         if test "$1" = "false"; then
@@ -305,7 +305,7 @@
 parse_script_option_list () {
     # Parse the script option list and take the appropriate action.
 
-    if ! argument_list=$(getopt hVc:ibp:r:Ro:e:skd $@); then
+    if test ! argument_list=`getopt hVc:ibp:r:Ro:e:skd $@`; then
         display_error
     fi
     eval set -- "$argument_list"

Modified: incubator/couchdb/trunk/bin/couchjs.tpl.in
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/bin/couchjs.tpl.in?rev=667972&r1=667971&r2=667972&view=diff
==============================================================================
--- incubator/couchdb/trunk/bin/couchjs.tpl.in (original)
+++ incubator/couchdb/trunk/bin/couchjs.tpl.in Sun Jun 15 10:00:58 2008
@@ -19,7 +19,7 @@
 
 DEFAULT_VERSION=170
 
-basename=$(basename $0)
+basename=`basename $0`
 
 display_version () {
     # Display version and copyright information.
@@ -79,7 +79,7 @@
 parse_script_option_list () {
     # Parse the script option list and take the appropriate action.
 
-    if ! argument_list=$(getopt hV $@); then
+    if test ! argument_list=`getopt hV $@`; then
         display_error
     fi
     eval set -- "$argument_list"
@@ -91,7 +91,7 @@
             *) break;;
         esac
     done
-    option_list=$(echo $@ | sed 's/--//')
+    option_list=`echo $@ | sed 's/--//'`
     if test -z "$option_list"; then
         display_error "You must specify a FILE."
     fi

Modified: incubator/couchdb/trunk/configure.ac
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/configure.ac?rev=667972&r1=667971&r2=667972&view=diff
==============================================================================
--- incubator/couchdb/trunk/configure.ac (original)
+++ incubator/couchdb/trunk/configure.ac Sun Jun 15 10:00:58 2008
@@ -106,13 +106,13 @@
 
 erlang_version_error="The installed Erlang version is less than 5.5.0 (R11B)."
 
-version=$(${ERL} -version 2>&1 | ${SED} "s/[[^0-9]]/ /g")
+version=`${ERL} -version 2>&1 | ${SED} "s/[[^0-9]]/ /g"`
 
-if test $(echo $version | ${AWK} "{print \$1}") -lt 5; then
+if test `echo $version | ${AWK} "{print \$1}"` -lt 5; then
     AC_MSG_ERROR([$erlang_version_error])
 fi
 
-if test $(echo $version | ${AWK} "{print \$2}") -lt 5; then
+if test `echo $version | ${AWK} "{print \$2}"` -lt 5; then
     AC_MSG_ERROR([$erlang_version_error])
 fi
 



Mime
View raw message