The R Project SVN R

Rev

Rev 30217 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 30217 Rev 46833
Line 1... Line -...
1
#!/bin/sh
-
 
2
#
-
 
3
# Like mv $1 $2, but if the files are the same, just delete $1.
1
# Like mv $1 $2, but if the files are the same, just delete $1.
4
# Status is 0 if $2 is changed, 1 otherwise.
2
# Status is 0 if $2 is changed, 1 otherwise.
5
 
3
 
6
if test -r "$2"; then
4
if test -r "$2"; then
7
  if cmp "$1" "$2" > /dev/null; then
5
  if cmp "$1" "$2" > /dev/null; then