Diff for /freem/scripts/fmd-docupdate between versions 1.1 and 1.3

version 1.1, 2025/04/05 03:18:41 version 1.3, 2025/05/05 12:38:11
Line 26 Line 26
 #   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.3  2025/05/05 12:38:11  snw
   #   Make fmd docupdate work when directory already exists
   #
   #   Revision 1.2  2025/04/06 03:38:05  snw
   #   Prepare for adding packaging functionality to fmd
   #
 #   Revision 1.1  2025/04/05 03:18:41  snw  #   Revision 1.1  2025/04/05 03:18:41  snw
 #   Add fmd docupdate command to dev scripts  #   Add fmd docupdate command to dev scripts
 #  #
Line 38 Line 44
 PGM=$(basename $0)  PGM=$(basename $0)
   
 function usage() {  function usage() {
     echo "usage:  fmd docupdate <ssh-server>"      echo
     exit 1      echo "Uploads current documentation to the FreeM website"
       echo
       echo "usage:"
       echo
       echo "   fmd docupdate <ssh-server>"
       echo
       echo " The <ssh-server> argument should be in the format 'username@fqdn'."
       echo " Do NOT specify anything else."
       echo
       exit 0
 }  }
   
   if [[ $1 == "help" ]]
 if [[ $# == 0 ]]  
 then  then
     echo "fmd-docupdate:  must be run from 'fmd docupdate'"      usage
     exit 1  
 fi  fi
   
 if [[ ! -f sem.ver ]]  if [[ $# == 0 ]]
 then  then
     echo "Not in the root of the FreeM repository."      echo "fmd-docupdate:  must be run from 'fmd docupdate'"
     exit 1      exit 1
 fi  fi
   
Line 69  cd doc/ Line 82  cd doc/
   
 DOCDIR="//var/www/freem.coherent-logic.com/docs/${NEWVER}/"  DOCDIR="//var/www/freem.coherent-logic.com/docs/${NEWVER}/"
   
 ssh "${SSHCRED}" "mkdir ${DOCDIR}"  ssh "${SSHCRED}" "mkdir -p ${DOCDIR}"
 if [[ $? != 0 ]]  if [[ $? != 0 ]]
 then  then
     echo "${PGM}:  error creating remote directory"      echo "${PGM}:  error creating remote directory"

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


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