Author: michiel
Date: 2009-06-03 17:33:51 +0200 (Wed, 03 Jun 2009)
New Revision: 35632
Modified:
speeltuin/mihxil/symlinks.sh
Log:
Wasn't working if the name itself contains a hyphen (e.g. mmbase-oscache-cache)
Modified: speeltuin/mihxil/symlinks.sh
===================================================================
--- speeltuin/mihxil/symlinks.sh 2009-06-03 15:22:46 UTC (rev 35631)
+++ speeltuin/mihxil/symlinks.sh 2009-06-03 15:33:51 UTC (rev 35632)
@@ -17,8 +17,8 @@
if [ -z "$1" ] ; then
apps="mmbase"
#No explicit jars specified
- for file in `ls $dest | grep -E 'mmbase-[a-z]+-.*'`; do
- jar=`echo $file | awk -F- '{print $2}'`
+ for file in `ls $dest | grep -E 'mmbase-[a-z\-]+-[0-9].*'`; do
+ jar=`echo $file | sed 's/mmbase-\(.*\)-[0-9].*/\1/'`
apps="$apps mmbase-$jar"
rm $dest/mmbase-$jar-*
done
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs