[eclipse-ptp] Use feature name from inside feature.xml for finddeps.sh
Orion Poplawski
orion at fedoraproject.org
Thu Dec 29 18:26:31 UTC 2011
commit 0f079439cca03ed03c7cc43078c07299586fd564
Author: Orion Poplawski <orion at cora.nwra.com>
Date: Wed Dec 28 22:26:37 2011 -0700
Use feature name from inside feature.xml for finddeps.sh
finddeps.sh | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/finddeps.sh b/finddeps.sh
index 3b880b9..2d31cf6 100755
--- a/finddeps.sh
+++ b/finddeps.sh
@@ -9,8 +9,7 @@ eval `awk '$1 == "%global" { print $2 "=" $3 }' eclipse-ptp.spec`
# Go through all of the features
find eclipse-ptp-${ptpver} -name feature.xml | sort | while read f
do
- #fname=$(echo $f | sed -e 's,.*org.,,' -e 's,-feature.*,,' -e 's,\.,-,g')
- fname=$(echo $f | sed -e 's,.*org.,org.,' -e 's,-feature.*,,')
+ fname=$(awk -F\" '/id=/ { print $2; exit }' $f)
echo -n "Feature $fname "
dir=`find /usr/*/eclipse -name ${fname}_\* | grep -F /features/`
if [ -z "$dir" ]
More information about the scm-commits
mailing list