view move-if-change @ 2473:35aac3cef6af

[xemacs-hg @ 2005-01-09 09:44:43 by adrian] xemacs-21.5: Correct docstring of start-process-shell-command -------------------- ChangeLog entries follow: -------------------- lisp/ChangeLog addition: 2005-01-09 Adrian Aichner <adrian@xemacs.org> * process.el (start-process-shell-command): Correct docstring.
author adrian
date Sun, 09 Jan 2005 09:44:44 +0000
parents 376386a54a3c
children
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