Diff for /freem/scripts/fmd-setversion between versions 1.1 and 1.4

version 1.1, 2025/04/04 18:00:01 version 1.4, 2025/05/02 16:25:46
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/05/02 16:25:46  snw
   #   -m
   #
   #   Revision 1.3  2025/04/06 03:38:05  snw
   #   Prepare for adding packaging functionality to fmd
   #
   #   Revision 1.2  2025/04/04 19:43:18  snw
   #   Switch to using environment catalog to determine user and group for environment, and remove -u and -g flags from freem
   #
 #   Revision 1.1  2025/04/04 18:00:01  snw  #   Revision 1.1  2025/04/04 18:00:01  snw
 #   *** empty log message ***  #   *** empty log message ***
 #  #
Line 33 Line 42
 # SPDX-License-Identifier: AGPL-3.0-or-later  # SPDX-License-Identifier: AGPL-3.0-or-later
 #  #
   
 if [[ $# == 0 ]]  function usage()
   {
       echo
       echo "Sets the FreeM version in this repository"
       echo
       echo "usage:"
       echo
       echo "  fmd setversion <version>"
       echo "   - Sets the FreeM version in this repository to <version>"
       echo
       echo "  fmd setversion --revert"
       echo "   - Reverts to the previous FreeM version"
       echo
       exit 0
   }
   
   if [[ $1 == "help" ]]
 then  then
     echo "setversion:  must be run from 'fmd setversion'"      usage
     exit 1  
 fi  fi
   
 if [[ ! -f sem.ver ]]  if [[ $# == 0 ]]
 then  then
     echo "Not in the root of the FreeM repository."      echo "setversion:  must be run from 'fmd setversion'"
     exit 1      exit 1
 fi  fi
   
Line 76  echo "${NEWVER}" > sem.ver Line 100  echo "${NEWVER}" > sem.ver
   
 sed -i.orig "s/${CURVER}/${NEWVER}/g" doc/freem.texi  sed -i.orig "s/${CURVER}/${NEWVER}/g" doc/freem.texi
 sed -i.orig "s/${CURVER}/${NEWVER}/g" configure.ac  sed -i.orig "s/${CURVER}/${NEWVER}/g" configure.ac
   sed -i.orig "s/${CURVER}/${NEWVER}/g" doc/freem_conformance.1
   
 VERSTR="VERSION ${NEWVER}"  VERSTR="VERSION ${NEWVER}"
   
Line 84  echo '********************************** Line 109  echo '**********************************
 echo "${VERSTR}" >> ChangeLog  echo "${VERSTR}" >> ChangeLog
 echo "" >> ChangeLog  echo "" >> ChangeLog
   
 ${FMD} log "Changed version from ${CURVER} to ${NEWVER}"  ${FMD} log "Change version from ${CURVER} to ${NEWVER}"
   
 ${FMD} changelog ${NEWVER}  ${FMD} changelog ${NEWVER}
   

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


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