maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r469060 - in /maven/components/branches/maven-2.0.x/maven-core-it/it2002: test-cvs.sh test.sh
Date Mon, 30 Oct 2006 04:06:44 GMT
Author: brett
Date: Sun Oct 29 20:06:43 2006
New Revision: 469060

URL: http://svn.apache.org/viewvc?view=rev&rev=469060
Log:
macify

Modified:
    maven/components/branches/maven-2.0.x/maven-core-it/it2002/test-cvs.sh
    maven/components/branches/maven-2.0.x/maven-core-it/it2002/test.sh

Modified: maven/components/branches/maven-2.0.x/maven-core-it/it2002/test-cvs.sh
URL: http://svn.apache.org/viewvc/maven/components/branches/maven-2.0.x/maven-core-it/it2002/test-cvs.sh?view=diff&rev=469060&r1=469059&r2=469060
==============================================================================
--- maven/components/branches/maven-2.0.x/maven-core-it/it2002/test-cvs.sh (original)
+++ maven/components/branches/maven-2.0.x/maven-core-it/it2002/test-cvs.sh Sun Oct 29 20:06:43
2006
@@ -12,9 +12,20 @@
 
 mkdir target
 
-dir=`readlink -f ${PWD}`
+cygwin=false;
+darwin=false;
+case "`uname`" in
+  CYGWIN*) cygwin=true ;;
+  Darwin*) darwin=true ;;
+esac
 
-if [ "$1" == "windows" ]; then
+if $darwin; then
+  dir=$PWD
+else
+  dir=`readlink -f ${PWD}`
+fi
+
+if $cygwin; then
   dir=`cygpath -m $dir`
   echo setting dir to $dir
 fi

Modified: maven/components/branches/maven-2.0.x/maven-core-it/it2002/test.sh
URL: http://svn.apache.org/viewvc/maven/components/branches/maven-2.0.x/maven-core-it/it2002/test.sh?view=diff&rev=469060&r1=469059&r2=469060
==============================================================================
--- maven/components/branches/maven-2.0.x/maven-core-it/it2002/test.sh (original)
+++ maven/components/branches/maven-2.0.x/maven-core-it/it2002/test.sh Sun Oct 29 20:06:43
2006
@@ -1,22 +1,25 @@
 #!/bin/bash
 
-
-echo
-echo "*********************************************************"
-echo if you are running in windows, run $0 windows
-echo "*********************************************************"
-echo
-
-
 rm -Rf target
 
 mkdir target
 
 svnadmin create --fs-type fsfs target/svnroot
 
-dir=`readlink -f ${PWD}`
+cygwin=false;
+darwin=false;
+case "`uname`" in
+  CYGWIN*) cygwin=true ;;
+  Darwin*) darwin=true ;;
+esac
+
+if $darwin; then
+  dir=$PWD
+else
+  dir=`readlink -f ${PWD}`
+fi
 
-if [ "$1" == "windows" ]; then
+if $cygwin; then
   dir=`cygpath -m $dir`
   echo setting dir to $dir
 fi



Mime
View raw message