view move-if-change @ 107448:c34ce344379e

Use more relative file and directory names in `lisp' make rules. * lisp/Makefile.in (EMACS): Arrange for it to work when we chdir. (setwins, setwins_almost, setwins_for_subdirs): Don't `cd'; output relative names. (all, compile, compile-always, compile-last): Set emacswd. (custom-deps, finder-data, autoloads, update-subdirs, compile-last): Just cd to the lisp source dir so we can use relative file names. * src/Makefile.in (bootstrap_exe): Use an absolute name.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Sat, 20 Mar 2010 17:46:31 -0400
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