view move-if-change @ 58336:2d07929a4d0b

(calc-selection-cache-entry): Moved declaration to earlier in the file. (calc-selection-cache-num, calc-selection-cache-comp) (calc-selection-cache-offset, calc-selection-true-num) (calc-final-point-line, calc-final-point-column) (calc-original-buffer): Declare them. (calc-fnp-op, calc-fnp-num): New variables. (calc-find-nth-part, calc-find-nth-part-rec) (calc-select-previous): Replace op and num by declared variables. (calc-rsf-old, calc-rsf-new): New variables. (calc-replace-sub-formula, calc-replace-sub-formula-rec): Replace variables old and new by declared variables. (calc-sel-reselect): New variable. (calc-auto-selection, calc-enter-selection, calc-edit-selection) (calc-sel-evaluate, calc-sel-expand-formula, calc-sel-expand-formula) (calc-sel-mult-both-sides, calc-sel-add-both-sides): Replace variable reselect with declared variable. (calc-edit-disp-trail): Declare it. (calc-finish-selection-edit): Replace variable disp-trail by declared variable.
author Jay Belanger <jay.p.belanger@gmail.com>
date Fri, 19 Nov 2004 22:21:18 +0000
parents 354e0c45cedf
children 14a97ab281d5
line wrap: on
line source

#!/bin/sh
if
test -r $2
then
if
cmp $1 $2 > /dev/null
then
echo $2 is unchanged
rm -f $1
else
mv -f $1 $2
fi
else
mv -f $1 $2
fi