Commit 89bbed90 authored by Akim Demaille's avatar Akim Demaille Committed by Roland Levillain
Browse files

Formatting changes



	* build-aux/move-if-change: here.
Signed-off-by: Roland Levillain's avatarRoland Levillain <roland@lrde.epita.fr>
parent fb8a6d4a
2006-12-27 Akim Demaille <akim@lrde.epita.fr>
Formatting changes
* build-aux/move-if-change: here.
2012-10-18 Roland Levillain <roland@lrde.epita.fr>
Fix the generation of the parser.
......
#!/bin/sh
# Like mv $1 $2, but if the files are the same, just delete $1.
# Status is 0 if $2 is changed, 1 otherwise.
if
test -r $2
then
if
cmp -s $1 $2
then
echo $2 is unchanged
rm -f $1
else
mv -f $1 $2
fi
if test -r "$2"; then
if cmp -s "$1" "$2"; then
echo >&2 "$2 is unchanged"
rm -f "$1"
else
mv -f "$1" "$2"
fi
else
mv -f $1 $2
mv -f "$1" "$2"
fi
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment