home *** CD-ROM | disk | FTP | other *** search
/ GEMini Atari / GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso / zip / gnu / gccsrc3.lzh / GCCSRC3 / MOVE-IF-.CHA < prev    next >
Text File  |  1993-07-23  |  120b  |  16 lines

  1. #!/bin/sh
  2. if
  3. test -r $2
  4. then
  5. if
  6. cmp $1 $2 > /dev/null
  7. then
  8. echo $2 is unchanged
  9. rm $1
  10. else
  11. mv $1 $2
  12. fi
  13. else
  14. mv $1 $2
  15. fi
  16.