Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 69841
Collapse All | Expand All

(-)file_not_specified_in_diff (+32 lines)
Line 13 Link Here
13
# Ingo Hohmann (iho@gmx.de) 
14
# do_backup & KEEP_BACKUPS added to be able to keep backups of changed files
15
16
# If you DO NOT want backups of automatically merged files, either uncomment 
17
# the following line, or set an environment variable like this.
18
#ETC_UPDATE_KEEP_BACKUPS="no"
19
Line 19 Link Here
26
function do_backup() {
27
   if [ "$ETC_UPDATE_KEEP_BACKUPS" != "no" ]; then
28
      local ofile="${1}"
29
      local path=`dirname $ofile`
30
      local name=`basename $ofile`
31
   
32
      cp $ofile $path/._BACKUP_.$name._`date +%F_%H%M%S_%N`
33
   fi
34
}
35
Line 69 Link Here
86
               do_backup
Line 126 Link Here
144
            echo -n "              ("
145
            if [ "$ETC_UPDATE_KEEP_BACKUPS" == "no" ]; then
146
               echo "NO, I'm NOT keeping updates of automatically merged files)"
147
            else   
148
               echo "YES, I'm keeping updates of automatically merged files)"
149
            fi
Line 135 Link Here
159
         # (iho) add switch to keep backup?
Line 264 Link Here
289
            # (iho) HACK
290
            do_backup ${ofile}
Line 292 Link Here
319
   # (iho) 
320
   do_backup ${ofile}
321
   
Line 313 Link Here
343
               # (iho) 
344
               do_backup ${ofile}

Return to bug 69841