view move-if-change @ 48679:672c6eac16e7

Use match-string. (gud-menu-map): Re-fix gdb-running to gud-running. Activate up/down and finish for pdb. (gud-def): Use backquotes. (gdb, sdb, dbx, xdb, pdb, jdb, bashdb): Remove redundant menu bindings. (gud-gdb-complete-in-progress, gud-gdb-complete-string) (gud-gdb-complete-break, gud-gdb-complete-list): Rename to gud-gdb-fetch-lines-in-progress, gud-gdb-fetch-lines-string, gud-gdb-fetch-lines-break and gud-gdb-fetched-lines. (gud-gdb-fetch-lines-filter): Rename from gud-gdb-complete-filter. Add a `filter' argument and run it on `string'. (gud-gdb-run-command-fetch-lines): Use it instead of gud-gdb-speedbar-stack-filter. Add a `skip' arg. Return the fetched lines. (gud-gdb-complete-command): Use it instead of cooking up something by hand using gud-gdb-complete-filter. (gud-gdb-get-stackframe): Use the new calling convention of gud-gdb-run-command-fetch-lines. (gud-gdb-fetched-stack-frame-list): Remove. (gud-gdb-speedbar-stack-filter): Remove. (gud-jdb-marker-filter): Change RE for easier extraction of submatches. (gud-bashdb-command-name): Add "--debugger" argument here. (bashdb): Use default gud-find-file and don't bother with a massage-args function now that --debugger is make explicit. (gud-bashdb-massage-args, gud-bashdb-find-file): Remove. (bashdb): Don't provide. (gud-target-name): New var. (gud-common-init): Set it. Also reset gud-running and gud-last-last-frame.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Thu, 05 Dec 2002 16:51:56 +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