| #!/bin/bash |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| function help_editEntry { |
| |
| |
| if [[ ! -d $MANUAL_CHAPTER_DIR ]];then |
| |
| |
| cli_printMessage "`gettext "The following documentation chapter will be created:"`" |
| cli_printMessage "$MANUAL_CHAPTER_DIR" "AsResponseLine" |
| cli_printMessage "`gettext "Do you want to continue?"`" "AsYesOrNoRequestLine" |
| |
| |
| help_updateChaptersFiles |
| |
| |
| help_updateChaptersMenu |
| |
| |
| |
| help_updateChaptersNodes |
| |
| fi |
| |
| |
| if [[ ! -f $ENTRY ]];then |
| |
| |
| cli_printMessage "`gettext "The following documentation section will be created:"`" |
| cli_printMessage "$ENTRY" "AsResponseLine" |
| cli_printMessage "`gettext "Do you want to continue?"`" "AsYesOrNoRequestLine" |
| |
| |
| help_updateMenu |
| |
| |
| |
| help_updateNodes |
| |
| |
| |
| |
| |
| |
| |
| help_restoreCrossReferences |
| |
| else |
| |
| |
| cli_printMessage "$ENTRY" 'AsUpdatingLine' |
| |
| fi |
| |
| |
| eval $EDITOR $ENTRY |
| |
| |
| cli_printMessage '-' 'AsSeparatorLine' |
| |
| |
| help_updateOutputFiles |
| |
| } |