Update of /cvsroot/monetdb/java
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv17000

Modified Files:
        version.sh 
Log Message:
de-complicate.

(
actually:
 - use shell globbing
 - avoid needless fork/execs
 - use bashisms for consistency
 - fix "$[f}"
 - don't do it difficult if it can be done simple
)


Index: version.sh
===================================================================
RCS file: /cvsroot/monetdb/java/version.sh,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- version.sh  5 Dec 2007 10:35:35 -0000       1.6
+++ version.sh  5 Dec 2007 10:57:25 -0000       1.7
@@ -122,15 +122,9 @@
        ../sql/src/jdbc/tests/Tests/Test.SQL.bat \
        ../sql/NT/MonetDB4-SQL{,64}/MonetDB4-SQL-Installer.vdproj \
        ../sql/NT/MonetDB5-SQL{,64}/MonetDB5-SQL-Installer.vdproj \
-       ../pathfinder/NT/MonetDB4-XQuery{,64}/MonetDB4-XQuery-Installer.vdproj \
+       ../"*"/NT/MonetDB4-XQuery{,64}/MonetDB4-XQuery-Installer.vdproj \
        ; do
-       if [[ ! -f ${file} ]] ; then
-               f="`echo ${file} | sed 's=\.\./\(sql\|pathfinder\)/=../*/='`"
-               f="`ls ${f} 2>/dev/null`"
-               if [[ -f $[f} ]] ; then
-                       file=${f}
-               fi
-       fi
+       file=$(eval echo ${file})
        if [[ -f ${file} ]] ; then
                for f in $FILES ; do
                        fr=${f//XXX/${NEW_MAJOR}.${NEW_MINOR}}


-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins

Reply via email to