source: EcnlProtoTool/trunk/asp3_dcre/utils/move-if-change@ 439

Last change on this file since 439 was 270, checked in by coas-nagasima, 7 years ago

mruby版ECNLプロトタイピング・ツールを追加

File size: 158 bytes
RevLine 
[270]1#! /bin/sh
2if test -r $2
3 then
4 if cmp -s $1 $2
5 then
6 echo $2 is unchanged
7 rm -f $1
8 else
9 mv -f $1 $2
10 fi
11else
12 mv -f $1 $2
13fi
Note: See TracBrowser for help on using the repository browser.