Diff for /freem/scripts/fmd-commit between versions 1.3 and 1.4

version 1.3, 2025/04/04 18:19:13 version 1.4, 2025/04/06 03:38:05
Line 25 Line 25
 #   along with FreeM.  If not, see <https://www.gnu.org/licenses/>.  #   along with FreeM.  If not, see <https://www.gnu.org/licenses/>.
 #  #
 #   $Log$  #   $Log$
   #   Revision 1.4  2025/04/06 03:38:05  snw
   #   Prepare for adding packaging functionality to fmd
   #
 #   Revision 1.3  2025/04/04 18:19:13  snw  #   Revision 1.3  2025/04/04 18:19:13  snw
 #   Fix fmd-commit call to fmd log  #   Fix fmd-commit call to fmd log
 #  #
Line 40 Line 43
 #  #
   
 function usage() {  function usage() {
     echo "usage:  fmd commit <commit-message>"      echo
     exit 1      echo "Commits your changes to the FreeM CVS repository"
       echo
       echo "usage:"
       echo
       echo "  fmd commit \"<commit-message>\""
       echo
       echo "  <commit-message> should describe what this change does."
       echo
       echo "NOTE: the commit message will be added to the ChangeLog"
       echo "      prior to committing the repository."
       echo
       exit 0
 }  }
   
   if [[ $1 == "help" ]]
   then
       usage
   fi
   
   
 if [[ $# == 0 ]]  if [[ $# == 0 ]]
 then  then
     echo "commit:  must be run from 'fmd commit'"      echo "commit:  must be run from 'fmd commit'"
Line 64  fi Line 84  fi
 FMD="$1"  FMD="$1"
 COMMIT_MESSAGE="$2"  COMMIT_MESSAGE="$2"
   
   OLD_CVS_RSH="${CVS_RSH}"
   OLD_CVSROOT="${CVSROOT}"
   
   export CVSROOT=":ext:${_fmd_cvsuser}@cvs.coherent-logic.com:/home/cvsroot"
   export CVS_RSH="$(which ssh)"
   
 ${FMD} log "${COMMIT_MESSAGE}"  ${FMD} log "${COMMIT_MESSAGE}"
 cvs ci -m "${COMMIT_MESSAGE}"  cvs ci -m "${COMMIT_MESSAGE}"
   
   export CVSROOT="${OLD_CVSROOT}"
   export CVS_RSH="${OLD_CVS_RSH}"
   

Removed from v.1.3  
changed lines
  Added in v.1.4


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>