view move-if-change @ 50571:9d10c32adde2

(f90-join-lines): Make it behave more like the standard function `join-line' - join with previous line, unless an argument supplied. Join comments correctly. No longer has a meaningful return value, no longer fills (seems contradictory to join AND fill). (f90-fill-region, f90-menu): Adapt for new f90-join-lines.
author Glenn Morris <rgm@gnu.org>
date Sat, 12 Apr 2003 20:43:41 +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