log
graph
tags
bookmarks
branches
changeset
browse
file
latest
diff
comparison
annotate
file log
raw
help
Mercurial
>
emacs
annotate move-if-change @ 41437:
390b2eab7f6f
Find changesets by keywords (author, files, the commit message), revision number or hash, or
revset expression
.
Mention the Elisp Intro manual.
author
Eli Zaretskii <eliz@gnu.org>
date
Sat, 24 Nov 2001 11:55:38 +0000 (2001-11-24)
parents
354e0c45cedf
children
14a97ab281d5
Ignore whitespace changes -
Everywhere:
Within whitespace:
At end of lines:
rev
line source
25856
354e0c45cedf
#
Dave Love <fx@gnu.org>
parents:
diff
changeset
+
��膩��鰹申鐃順�渇����紮�鐃醇�鐃緒申鐃緒申����鐃初��膩��鰹申鐃順�渇��膩���
1
#!/bin/sh
354e0c45cedf
#
Dave Love <fx@gnu.org>
parents:
diff
changeset
+
��膩��鰹申鐃順�渇����紮�鐃醇�鐃緒申鐃緒申����鐃初��膩��鰹申鐃順�渇��膩���
2
if
354e0c45cedf
#
Dave Love <fx@gnu.org>
parents:
diff
changeset
+
��膩��鰹申鐃順�渇����紮�鐃醇�鐃緒申鐃緒申����鐃初��膩��鰹申鐃順�渇��膩���
3
test -r $2
354e0c45cedf
#
Dave Love <fx@gnu.org>
parents:
diff
changeset
+
��膩��鰹申鐃順�渇����紮�鐃醇�鐃緒申鐃緒申����鐃初��膩��鰹申鐃順�渇��膩���
4
then
354e0c45cedf
#
Dave Love <fx@gnu.org>
parents:
diff
changeset
+
��膩��鰹申鐃順�渇����紮�鐃醇�鐃緒申鐃緒申����鐃初��膩��鰹申鐃順�渇��膩���
5
if
354e0c45cedf
#
Dave Love <fx@gnu.org>
parents:
diff
changeset
+
��膩��鰹申鐃順�渇����紮�鐃醇�鐃緒申鐃緒申����鐃初��膩��鰹申鐃順�渇��膩���
6
cmp $1 $2 > /dev/null
354e0c45cedf
#
Dave Love <fx@gnu.org>
parents:
diff
changeset
+
��膩��鰹申鐃順�渇����紮�鐃醇�鐃緒申鐃緒申����鐃初��膩��鰹申鐃順�渇��膩���
7
then
354e0c45cedf
#
Dave Love <fx@gnu.org>
parents:
diff
changeset
+
��膩��鰹申鐃順�渇����紮�鐃醇�鐃緒申鐃緒申����鐃初��膩��鰹申鐃順�渇��膩���
8
echo $2 is unchanged
354e0c45cedf
#
Dave Love <fx@gnu.org>
parents:
diff
changeset
+
��膩��鰹申鐃順�渇����紮�鐃醇�鐃緒申鐃緒申����鐃初��膩��鰹申鐃順�渇��膩���
9
rm -f $1
354e0c45cedf
#
Dave Love <fx@gnu.org>
parents:
diff
changeset
+
��膩��鰹申鐃順�渇����紮�鐃醇�鐃緒申鐃緒申����鐃初��膩��鰹申鐃順�渇��膩���
10
else
354e0c45cedf
#
Dave Love <fx@gnu.org>
parents:
diff
changeset
+
��膩��鰹申鐃順�渇����紮�鐃醇�鐃緒申鐃緒申����鐃初��膩��鰹申鐃順�渇��膩���
11
mv -f $1 $2
354e0c45cedf
#
Dave Love <fx@gnu.org>
parents:
diff
changeset
+
��膩��鰹申鐃順�渇����紮�鐃醇�鐃緒申鐃緒申����鐃初��膩��鰹申鐃順�渇��膩���
12
fi
354e0c45cedf
#
Dave Love <fx@gnu.org>
parents:
diff
changeset
+
��膩��鰹申鐃順�渇����紮�鐃醇�鐃緒申鐃緒申����鐃初��膩��鰹申鐃順�渇��膩���
13
else
354e0c45cedf
#
Dave Love <fx@gnu.org>
parents:
diff
changeset
+
��膩��鰹申鐃順�渇����紮�鐃醇�鐃緒申鐃緒申����鐃初��膩��鰹申鐃順�渇��膩���
14
mv -f $1 $2
354e0c45cedf
#
Dave Love <fx@gnu.org>
parents:
diff
changeset
+
��膩��鰹申鐃順�渇����紮�鐃醇�鐃緒申鐃緒申����鐃初��膩��鰹申鐃順�渇��膩���
15
fi