view move-if-change @ 65708:824d09eb82bf

Preliminary Forth support. (prolog_pr): Cast strlen to int before comparison. (LOOKING_AT, LOOKING_AT_NOCASE): Let the preprocessor check that the second argument is indeed a literal string. (longopts, print_help, main): The -a (--append) option can be used in ctags also; for one, the Linux make file uses it.
author Francesco Potortì <pot@gnu.org>
date Tue, 27 Sep 2005 13:23:47 +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