summaryrefslogtreecommitdiff
path: root/mv-if-diff
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2005-10-24 21:32:57 +0200
committerNicholas Clark <nick@ccl4.org>2005-10-25 10:36:39 +0000
commit2c38b89b23afe1c5cf2287ecd6f0b15d00117c3b (patch)
tree7537b1dd817760fb8da0fb1f9774e3143b1a98ce /mv-if-diff
parent7ea75b6170327bc14c03f69e90eb8c7d3cb91382 (diff)
downloadperl-2c38b89b23afe1c5cf2287ecd6f0b15d00117c3b.tar.gz
remove mv-if-diff
Message-ID: <20051024193257.2022ea0d@grubert.mandrakesoft.com> (with tweak to add rm for opmini.c, remove mv-if-diff, and reflect this removal in MANIFEST) p4raw-id: //depot/perl@25842
Diffstat (limited to 'mv-if-diff')
-rw-r--r--mv-if-diff15
1 files changed, 0 insertions, 15 deletions
diff --git a/mv-if-diff b/mv-if-diff
deleted file mode 100644
index 4a85b98392..0000000000
--- a/mv-if-diff
+++ /dev/null
@@ -1,15 +0,0 @@
-: mv-if-diff file1 file2
-: move file1 to file2 if file1 and file2 are different.
-
-if test $# -lt 2 ; then
- echo "usage: $0 file1 file2"
- echo "move file1 to file2 if file1 and file2 are different."
- exit 1
-fi
-if cmp $1 $2 >/dev/null 2>&1; then
- echo "File $2 not changed."
- rm -f $1
-else
- rm -f $2
- mv $1 $2
-fi