source: CMT/HEAD/mgr/cmt_unixtoos9.sh@ 28

Last change on this file since 28 was 28, checked in by arnault, 21 years ago

Set exe bits to *.sh

  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 286 bytes
Line 
1#!/bin/sh -f
2
3for f in $* ; do
4 name=`basename $f`
5
6 tr '\n' '\r' <$f >t$$
7
8 if test -r $name ; then
9 diff t$$ $name >/dev/null 2>/dev/null
10 s=$?
11 else
12 s=1
13 fi
14
15 if test $s = "0" ; then
16 /bin/rm -f t$$
17 else
18 echo "Convert $f to $name"
19 mv t$$ $name
20 fi
21done
Note: See TracBrowser for help on using the repository browser.