Changeset df40b83 in rtems-testing


Ignore:
Timestamp:
Jun 21, 2010, 4:50:58 PM (9 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, 8895273c193787f84c4585a10f6d6aceb3b25dc4
Children:
cc67fa7
Parents:
f280ced
Message:

2010-06-21 Joel Sherrill <joel.sherrill@…>

  • mktest: Add generation of .cvsignore and first attempt at cvs add.
Location:
cvs-helpers
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cvs-helpers/ChangeLog

    rf280ced rdf40b83  
     12010-06-21      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * mktest: Add generation of .cvsignore and first attempt at cvs add.
     4
    152010-06-21      Joel Sherrill <joel.sherrill@oarcorp.com>
    26
  • cvs-helpers/mktest

    rf280ced rdf40b83  
    3030}
    3131
     32addToCVS=no
    3233source=
    3334dest=
    3435desc=
    3536verbose=no
    36 while getopts d:D:s:v OPT
     37while getopts cd:D:s:v OPT
    3738do
    3839  case "$OPT" in
     40    c) addToCVS=`toggle ${addToCVS}` ;;
    3941    d) dest=$OPTARG ;;
    4042    D) desc=$OPTARG ;;
     
    4850test "X${dest}" != "X"
    4951check_status $? No destination provided
     52test -r configure.ac
     53check_status $? Not in test suite directory
     54
     55
     56if [ ${addToCVS} == yes ] ; then
     57  test -d ${dest}
     58  check_status $? "Cannot add ${dest} -- does not exist"
     59
     60  echo cvs add ${dest}
     61  cd ${dest}
     62  for f in `ls -1 .cvsignore Makefile.am *.doc *.scn *.[ch] 2>/dev/null`
     63  do
     64     echo cvs add ${f}
     65  done
     66  exit 0
     67fi
     68
    5069test "X${source}" != "X"
    5170check_status $? No source provided
    5271test -d "${source}"
    5372check_status $? Source directory not present
    54 test -r configure.ac
    55 check_status $? Not in test suite directory
     73
     74test -d ${dest}/CVS
     75check_status $? "Are you sure about ${dest}? Already a CVS directory in it"
    5676
    5777let $((shiftcount = $OPTIND - 1))
     
    85105done
    86106
     107cat <<EOF >${dest}/.cvsignore
     108Makefile
     109Makefile.in
     110EOF
     111
    87112cat <<EOF
    88113You need to add the test to the Makefile.am and configure.ac by hand
Note: See TracChangeset for help on using the changeset viewer.