view move-if-change @ 60521:f38eb69aa763

(sgml-tag, html-tag-alist) (html-horizontal-rule, html-line, html-image, html-checkboxes) (html-radio-buttons): Add a space before the trailing `/>' where sgml-xml-mode is non-nil. (sgml-delete-tag): Check if the tag ends with `/>' to not delete the subsequent tag of the empty XML tag. (html-href-anchor): Don't set initial input to "http:". (html-image): Ask for the image URL and set point inside alt="". (html-name-anchor): Duplicate the name in the `id' attribute when sgml-xml-mode is non-nil. (html-paragraph): Remove \n before <p>. (html-checkboxes, html-radio-buttons): Insert `checked="checked"' instead of `checked' when sgml-xml-mode is non-nil.
author Juri Linkov <juri@jurta.org>
date Tue, 08 Mar 2005 21:45:00 +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