diff --git a/tmkproject.sh b/tmkproject.sh index 9627759..4004f77 100755 --- a/tmkproject.sh +++ b/tmkproject.sh @@ -3,9 +3,9 @@ # # Copyright (c) 2012, TundraWare Inc., Des Plaines, IL 60018 USA # All Rights Reserved. For Terms Of Use, See: tmkproject-license.txt -# $Id: tmkproject.sh,v 1.114 2012/06/08 03:34:20 tundra Exp $ +# $Id: tmkproject.sh,v 1.115 2012/09/06 15:54:00 tundra Exp $ -CVSID='$Id: tmkproject.sh,v 1.114 2012/06/08 03:34:20 tundra Exp $' +CVSID='$Id: tmkproject.sh,v 1.115 2012/09/06 15:54:00 tundra Exp $' # If user just wants program version, display it and exit. @@ -18,11 +18,20 @@ fi +# Note if user wants to suppress project CVS checkin + +CVSCHECKIN="True" +if [ _$1 = _-c ] +then + CVSCHECKIN="False" + shift +fi + # Make sure we have a valid command line if [ $# -ne 3 ] then - echo "usage: tmkproject.sh name type 'Brief Description'" + echo "usage: tmkproject.sh [-v -c] name type 'Brief Description'" exit 1 fi @@ -147,26 +156,31 @@ done -# Get everything under CVS control +# Get everything under CVS control unless told not to -cvs import -m "${DESCRIPTION}" ${PROJECTNAME} ${VENDORTAG} start -cd .. -rm -rf ${PROJECTNAME} +if [ $CVSCHECKIN = "True" ] +then -# Instantiate the project in the projects directory + cvs import -m "${DESCRIPTION}" ${PROJECTNAME} ${VENDORTAG} start + cd .. + rm -rf ${PROJECTNAME} -mkdir -p ${PROJECTSDIR} # Make sure it exists -cd ${PROJECTSDIR} -cvs co ${PROJECTNAME} -cd ${PROJECTNAME} -cvs commit -r1.100 -m 'Initial CVS checkin to initialize version number' + # Instantiate the project in the projects directory -# Get rid of sticky tags + mkdir -p ${PROJECTSDIR} # Make sure it exists + cd ${PROJECTSDIR} + cvs co ${PROJECTNAME} + cd ${PROJECTNAME} + cvs commit -r1.100 -m 'Initial CVS checkin to initialize version number' -for f in `find ./ -type f | grep -v CVS` -do - cvs update -A $f -done + # Get rid of sticky tags + + for f in `find ./ -type f | grep -v CVS` + do + cvs update -A $f + done + +fi # Reminders