Mercurial > emacs
view move-if-change @ 47815:a57526a55f0e
Clean up Workarounds. Shorten variable names. Use
cus-test-vars-with-changed-state in a different way.
author | Markus Rost <rost@math.uni-bielefeld.de> |
---|---|
date | Wed, 09 Oct 2002 22:39:18 +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