view move-if-change @ 103755:a1a6e341fa6e
* progmodes/gdb-mi.el (gdb-input): Add trailing newline to command.
author |
Dmitry Dzhus <dima@sphinx.net.ru> |
date |
Tue, 07 Jul 2009 20:10:05 +0000 (2009-07-07) |
parents |
354e0c45cedf |
children |
14a97ab281d5 |
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