jbossnative-commits(a)lists.jboss.org wrote:
Author: jfrederic.clere(a)jboss.com
Date: 2008-03-06 06:42:57 -0500 (Thu, 06 Mar 2008)
New Revision: 1424
- PACKAGE=`basename ${build_top} | awk -F - '{ print $1 "-" $2 }'`
has_package=true
has_version=true
TYPE=`basename ${build_top} | awk -F - '{ print $NF }'`
if [ $TYPE = "src" ]; then
build_version=`basename ${build_top} | awk -F - '{ print $(NF-1) }'`
else
- build_version=`basename ${build_top} | awk -F - '{ print $(NF-3) "-"
$(NF-2) }'`
+ build_version=`basename ${build_top} | awk -F - '{ print $(NF-2) }'`
fi
+ PACKAGE=`basename ${build_top} | awk -F"-$build_version" '{ print $1
}'`
Will this resolve the '2.0.4-dev' for version names?
Perhaps we should simply use the underscore or dot here and keep
the hyphen as separator, so 2.0.4_dev instead 2.0.4-dev
Cheers
--
(TM)