* [Buildroot] [PATCH] pkg-stats: update grep tests for package type
@ 2011-10-04 23:10 H Hartley Sweeten
2011-10-05 11:58 ` Peter Korsgaard
0 siblings, 1 reply; 2+ messages in thread
From: H Hartley Sweeten @ 2011-10-04 23:10 UTC (permalink / raw)
To: buildroot
Update the grep tests used to determine the package type.
The package name and directory are now worked out magically due to:
package: add helper functions to get package name and directory magically
Because of this the extra arguments were removed by patches:
package: remove useless arguments from GENTARGETS
package: remove useless arguments from AUTOTARGETS
package: remove useless arguments from CMAKETARGETS
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
---
diff --git a/support/scripts/pkg-stats b/support/scripts/pkg-stats
index bb1c27d..8602b0f 100755
--- a/support/scripts/pkg-stats
+++ b/support/scripts/pkg-stats
@@ -98,27 +98,27 @@ for i in $(find package/ -name '*.mk') ; do
is_manual_target=0
is_manual_host=0
- if grep -E "\(call AUTOTARGETS,[^,]*,[^,]*,host\)" $i > /dev/null ; then
+ if grep -E "\(call AUTOTARGETS,host\)" $i > /dev/null ; then
is_auto_host=1
fi
- if grep -E "\(call AUTOTARGETS,[^,]*,[^,]*(,target|)\)" $i > /dev/null ; then
+ if grep -E "\(call AUTOTARGETS\)" $i > /dev/null ; then
is_auto_target=1
fi
- if grep -E "\(call GENTARGETS,[^,]*,[^,]*,host\)" $i > /dev/null ; then
+ if grep -E "\(call GENTARGETS,host\)" $i > /dev/null ; then
is_pkg_host=1
fi
- if grep -E "\(call GENTARGETS,[^,]*,[^,]*(,target|)\)" $i > /dev/null ; then
+ if grep -E "\(call GENTARGETS\)" $i > /dev/null ; then
is_pkg_target=1
fi
- if grep -E "\(call CMAKETARGETS,[^,]*,[^,]*,host\)" $i > /dev/null ; then
+ if grep -E "\(call CMAKETARGETS,host\)" $i > /dev/null ; then
is_cmake_host=1
fi
- if grep -E "\(call CMAKETARGETS,[^,]*,[^,]*(,target|)\)" $i > /dev/null ; then
+ if grep -E "\(call CMAKETARGETS\)" $i > /dev/null ; then
is_cmake_target=1
fi
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH] pkg-stats: update grep tests for package type
2011-10-04 23:10 [Buildroot] [PATCH] pkg-stats: update grep tests for package type H Hartley Sweeten
@ 2011-10-05 11:58 ` Peter Korsgaard
0 siblings, 0 replies; 2+ messages in thread
From: Peter Korsgaard @ 2011-10-05 11:58 UTC (permalink / raw)
To: buildroot
>>>>> "H" == H Hartley Sweeten <hartleys@visionengravers.com> writes:
H> Update the grep tests used to determine the package type.
H> The package name and directory are now worked out magically due to:
H> package: add helper functions to get package name and directory magically
H> Because of this the extra arguments were removed by patches:
H> package: remove useless arguments from GENTARGETS
H> package: remove useless arguments from AUTOTARGETS
H> package: remove useless arguments from CMAKETARGETS
Committed, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-10-05 11:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-04 23:10 [Buildroot] [PATCH] pkg-stats: update grep tests for package type H Hartley Sweeten
2011-10-05 11:58 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox