source: trunk/third/cns/move-if-change @ 8789

Revision 8789, 129 bytes checked in by ghudson, 28 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r8788, which included commits to RCS files with non-trunk default branches.
  • Property svn:executable set to *
Line 
1#!/bin/sh
2if
3test -r $2
4then
5if
6cmp $1 $2 > /dev/null
7then
8echo $2 is unchanged
9rm -f $1
10else
11mv -f $1 $2
12fi
13else
14mv -f $1 $2
15fi
Note: See TracBrowser for help on using the repository browser.