summaryrefslogtreecommitdiff
path: root/merge-helpers
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2012-02-16 16:15:02 -0600
committerJoel Sherrill <joel.sherrill@oarcorp.com>2012-02-16 16:15:02 -0600
commit67e2e75e7e786617b2ef5042b487286916b5c8f7 (patch)
tree8bccb0bfb1e94d16997a242640d7c88242c29333 /merge-helpers
parentb60ea1abac2c8d87413a816704e3e952a14b4d72 (diff)
Reflect move to git.
Diffstat (limited to 'merge-helpers')
-rwxr-xr-xmerge-helpers/check_submission11
1 files changed, 9 insertions, 2 deletions
diff --git a/merge-helpers/check_submission b/merge-helpers/check_submission
index 5f2e391..f30a147 100755
--- a/merge-helpers/check_submission
+++ b/merge-helpers/check_submission
@@ -12,6 +12,8 @@ usage()
{
cat <<EOF
check_submission [options] directory
+ -b - check assuming directory is a BSP
+ -t - check assuming directory is a test
-v - verbose
EOF
}
@@ -52,6 +54,10 @@ shift $shiftcount
basedir=${1}
+if [ "${basedir}X" = "X" ] ; then
+ basedir=.
+fi
+
if [ ${do_bsp} = "no" -a ${do_test} = "no" ] ; then
fatal must select test or bsp check mode
fi
@@ -126,6 +132,7 @@ find_source()
case "$OPT" in
c) findArgs="${findArgs} -o -name configure.ac" ;;
C) findArgs="${findArgs} -o -name *.cfg" ;;
+ d) findArgs="${findArgs} -o -name *.doc" ;;
m) findArgs="${findArgs} -o -name Makefile.am" ;;
*) echo "bad arg to find_source ($OPT)" ; exit 1 ;;
esac
@@ -159,9 +166,9 @@ done
# We want CVS Id strings everywhere possible
echo "=== Checking for CVS Id strings"
-find_source | while read f
+find_source -d | while read f
do
- test_its_there ${f} "\$Id"
+ test_its_NOT_there ${f} "\$Id"
done
# We do not want the reformatted license notice