diff options
Diffstat (limited to '')
-rw-r--r-- | tools/build/scripts/Makefile.in | 3 | ||||
-rw-r--r-- | tools/build/scripts/search-id.sh | 15 |
2 files changed, 17 insertions, 1 deletions
diff --git a/tools/build/scripts/Makefile.in b/tools/build/scripts/Makefile.in index b9446a55ff..42ee76837d 100644 --- a/tools/build/scripts/Makefile.in +++ b/tools/build/scripts/Makefile.in @@ -19,7 +19,8 @@ include $(RTEMS_ROOT)/make/leaf.cfg DESTDIR=$(PROJECT_RELEASE)/build-tools -PGMS=install-if-change rcs-clean lock-directory unlock-directory rtems-glom +PGMS=install-if-change rcs-clean lock-directory unlock-directory rtems-glom search-id.sh + INSTALLED=$(PGMS:%=$(DESTDIR)/%) diff --git a/tools/build/scripts/search-id.sh b/tools/build/scripts/search-id.sh new file mode 100644 index 0000000000..a94d2d7cc9 --- /dev/null +++ b/tools/build/scripts/search-id.sh @@ -0,0 +1,15 @@ +#!/bin/sh +# +# $Id$ +# + +find $1 -type f -a ! -name "*.scn" -a ! -name "bsp_specs" -a \ + -print > /tmp/$$.0 +find $1 -type f -a ! -name "*.scn" -a ! -name "bsp_specs" -a \ + -exec grep -l '$Id' {} \; > /tmp/$$.1 + +diff /tmp/$$.0 /tmp/$$.1 > /tmp/$$.2 + +grep "<" /tmp/$$.2 | sed 's/< //' >&1 + +rm -f /tmp/$$* |