Changeset 106 for confman/confmanlib.sh


Ignore:
Timestamp:
05/21/2006 14:55:27 (6 years ago)
Author:
ccowart
Message:

Some error checking for renaming. This hasn't been tested

File:
1 edited

Legend:

Unmodified
Added
Removed
  • confman/confmanlib.sh

    r105 r106  
    320320 
    321321        # First, we perform the easy operations 
    322         svn mv ${WORK_PATH}/${oldmod} ${WORK_PATH}/${newmod} 
     322        svn mv ${WORK_PATH}/${oldmod} ${WORK_PATH}/${newmod} || \ 
     323                {       echo "There was a problem renaming the modules." > &4 ; \ 
     324                        conf_clean_exit 1 } 
    323325        svn mv ${WORK_PATH}/${REPO_CHECKPTS}/${oldmod} \ 
    324                         ${WORK_PATH}/${REPO_CHECKPTS}/${newmod} 
    325  
     326                        ${WORK_PATH}/${REPO_CHECKPTS}/${newmod} || \ 
     327                {       echo "There was a problem renaming the checkpts." >&4 ; \ 
     328                        conf_clean_exit 1 } 
     329 
     330        svn update ${WORK_PATH} || \ 
     331                {       echo "Your working copy didn't update correctly." >&4 ; \ 
     332                        conf_clean_exit 1 } 
    326333        svn commit -m "Renaming ${oldmod} to ${newmod}, phase 1." \ 
    327                 ${WORK_PATH}/{,${REPO_CHECKPTS}}/{${oldmod},${newmod}} 
     334                ${WORK_PATH}/{,${REPO_CHECKPTS}}/{${oldmod},${newmod}} || \ 
     335                {       echo "Committing the changes failed." >&4 ; conf_clean_exit 1 } 
    328336 
    329337        # Next, we have to rename any singularities 
     
    335343        done 
    336344 
     345        svn update ${WORK_PATH} || \ 
     346                {       echo "Your working copy didn't update correctly." >&4 ; \ 
     347                        conf_clean_exit 1 } 
    337348        svn commit -m "Renaming ${oldmod} to ${newmod}, phase 2." \ 
    338                 ${WORK_PATH}/${newmod} 
     349                ${WORK_PATH}/${newmod} || \ 
     350                {       echo "Committing the changes failed." >&4 ; conf_clean_exit 1 } 
    339351 
    340352        # Now, we have to go fix all the confman headers in all the files... 
     
    343355                {} \; 
    344356         
     357        svn update ${WORK_PATH} || \ 
     358                {       echo "Your working copy didn't update correctly." >&4 ; \ 
     359                        conf_clean_exit 1 } 
    345360        svn commit -m "Renaming ${oldmod} to ${newmod}, complete." \ 
    346                 ${WORK_PATH}/${newmod} 
     361                ${WORK_PATH}/${newmod} || \ 
     362                {       echo "Committing the changes failed." >&4 ; conf_clean_exit 1 } 
    347363} 
    348364 
Note: See TracChangeset for help on using the changeset viewer.