From 87a0f9f96226adeea6072751021a4df351de17d0 Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Jan 06 2011 15:24:46 +0000 Subject: Rename manual_doCopy.sh to manual_copyEntry.sh. --- diff --git a/Scripts/Bash/Functions/Manual/manual_copyEntry.sh b/Scripts/Bash/Functions/Manual/manual_copyEntry.sh new file mode 100755 index 0000000..189a029 --- /dev/null +++ b/Scripts/Bash/Functions/Manual/manual_copyEntry.sh @@ -0,0 +1,61 @@ +#!/bin/bash +# +# manual_copyEntry.sh -- This function copies documentation entries and +# update documentation structure to reflect changes. +# +# Copyright (C) 2009-2011 Alain Reguera Delgado +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 2 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +# USA. +# +# ---------------------------------------------------------------------- +# $Id$ +# ---------------------------------------------------------------------- + +function manual_copyEntry { + + # Verify target directory. + cli_checkRepoDirTarget + + # Transform FLAG_TO path into a documentation entry. + FLAG_TO=$(manual_getEntry "${FLAG_TO}") + + # Print action preamble. + cli_printActionPreamble "${FLAG_TO}" 'doCreate' 'AsResponeLine' + + # Print action message. + cli_printMessage "$FLAG_TO" 'AsCreatingLine' + + # Copy documentation entry. + svn cp "${ENTRY}" "${FLAG_TO}" --quiet + + # Redefine documentation ENTRY variable in order to update + # documentation structure based on the new documentation entry + # specified by FLAG_TO path. At this point the new documentation + # entry should be created and available inside the working copy, + # so we are safe to update documentation structure using the new + # documentation entry as regular documentation entry. + ENTRY="${FLAG_TO}" + + # Update Texinfo menu information. + manual_updateMenu + + # Update Texinfo nodes information. + manual_updateNodes + + # Update Texinfo cross-reference information. + manual_restoreCrossReferences + +} diff --git a/Scripts/Bash/Functions/Manual/manual_doCopy.sh b/Scripts/Bash/Functions/Manual/manual_doCopy.sh deleted file mode 100755 index c114b7d..0000000 --- a/Scripts/Bash/Functions/Manual/manual_doCopy.sh +++ /dev/null @@ -1,61 +0,0 @@ -#!/bin/bash -# -# manual_doCopy.sh -- This function copies documentation entries and -# update documentation structure to reflect changes. -# -# Copyright (C) 2009-2011 Alain Reguera Delgado -# -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License as -# published by the Free Software Foundation; either version 2 of the -# License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 -# USA. -# -# ---------------------------------------------------------------------- -# $Id$ -# ---------------------------------------------------------------------- - -function manual_doCopy { - - # Verify target directory. - cli_checkRepoDirTarget - - # Transform FLAG_TO path into a documentation entry. - FLAG_TO=$(manual_getEntry "${FLAG_TO}") - - # Print action preamble. - cli_printActionPreamble "${FLAG_TO}" 'doCreate' 'AsResponeLine' - - # Print action message. - cli_printMessage "$FLAG_TO" 'AsCreatingLine' - - # Copy documentation entry. - svn cp "${ENTRY}" "${FLAG_TO}" --quiet - - # Redefine documentation ENTRY variable in order to update - # documentation structure based on the new documentation entry - # specified by FLAG_TO path. At this point the new documentation - # entry should be created and available inside the working copy, - # so we are safe to update documentation structure using the new - # documentation entry as regular documentation entry. - ENTRY="${FLAG_TO}" - - # Update Texinfo menu information. - manual_updateMenu - - # Update Texinfo nodes information. - manual_updateNodes - - # Update Texinfo cross-reference information. - manual_restoreCrossReferences - -}