Debian Codegraph @

config/move-if-change

raw symbols SCIP
1 #!/bin/shscip-shell filesystem . . `/bin/sh`.
2 # Like mv $1 $2, but if the files are the same, just delete $1.
3 # Status is 0 if $2 is changed, 1 otherwise.
4 if
5 testscip-shell system . . test. -r $2
6 then
7 if
8 cmpscip-shell system . . cmp. -s $1 $2
9 then
10 echoscip-shell system . . echo. $2 is unchanged
11 rmscip-shell system . . rm. -f $1
12 else
13 mvscip-shell system . . mv. -f $1 $2
14 fi
15 else
16 mvscip-shell system . . mv. -f $1 $2
17 fi