Changeset 62df6c5 in rtems-testing


Ignore:
Timestamp:
Sep 10, 2009, 7:42:35 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, 8895273c193787f84c4585a10f6d6aceb3b25dc4
Children:
486e255
Parents:
3505500
Message:

2009-09-10 Joel Sherrill <joel.sherrill@…>

  • check_bsp: Clean up check_bsp.
  • Makefile: New file.
Location:
merge-helpers
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • merge-helpers/ChangeLog

    r3505500 r62df6c5  
     12009-09-10      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * check_bsp: Clean up check_bsp.
     4        * Makefile: New file.
     5
    162009-09-10      Joel Sherrill <joel.sherrill@oarcorp.com>
    27
  • merge-helpers/check_bsp

    r3505500 r62df6c5  
    3434  grep ${2} ${1} >/dev/null
    3535  if [ $? -ne 0 ] ; then
    36     echo ${2} is NOT in ${bspdir}/${1}
     36    echo NOT in ${bspdir}/${1}
    3737  fi
    3838
     
    4141test_its_NOT_there()
    4242{
    43   if [ $# -ne 2 ] ; then
     43  if [ $# -lt 2 ] ; then
    4444    echo Usage: $0 FILE pattern
    4545  fi
    46   grep ${2} ${1} >/dev/null
     46  FILE=$1
     47  shift
     48  grep "${*}" ${FILE} >/dev/null
    4749  if [ $? -eq 0 ] ; then
    48     echo ${2} SHOULD NOT BE IN ${bspdir}/${1}
     50    echo SHOULD NOT BE IN ${bspdir}/${FILE}
    4951  fi
    5052
    5153}
    5254
    53 test_its_there configure.ac RTEMS_BSP_BOOTCARD_OPTIONS
    54 test_its_there configure.ac RTEMS_BSP_CLEANUP_OPTIONS
     55if [ -r configure.ac ] ; then
     56  echo "=== Checking for options in BSP configure.ac"
     57  test_its_there configure.ac RTEMS_BSP_BOOTCARD_OPTIONS
     58  test_its_there configure.ac RTEMS_BSP_CLEANUP_OPTIONS
     59fi
    5560
    5661# really need to make the copyright strings consistent in BSPs
     62echo "=== Checking for copyright notices"
    5763find . -name "*.[chS]" | while read f
    5864do
     
    6470
    6571# We want CVS Id strings everywhere possible
     72echo "=== Checking for CVS Id strings"
    6673find . -name "*.[chS]" -o -name "*.ac" -o -name "Makefile.am" | while read f
    6774do
     
    6976done
    7077
    71 # We do not want printf or puts in a BSP
     78# We do not want printf in a BSP
     79echo "=== Checking for printf"
    7280find . -name "*.[chS]" -o -name "*.ac" -o -name "Makefile.am" | while read f
    7381do
    7482  test_its_NOT_there ${f} printf
     83done
     84
     85# We do not want puts in a BSP
     86echo "=== Checking for puts"
     87find . -name "*.[chS]" -o -name "*.ac" -o -name "Makefile.am" | while read f
     88do
    7589  test_its_NOT_there ${f} puts
    7690done
    7791
     92# We do not want the reformatted license notice
     93echo "=== Checking for reformatted RTEMS license notices"
     94find . -name "*.[chS]" -o -name "*.ac" -o -name "Makefile.am" | while read f
     95do
     96  test_its_NOT_there ${f} "this file may be found in the file"
     97done
     98
     99exit 0
Note: See TracChangeset for help on using the changeset viewer.