Home | History | Annotate | Download | only in extensions
      1 #!/bin/sh
      2 
      3 t1=`mktemp`
      4 t2=`mktemp`
      5 
      6 ls *.c | tr [A-Z] [a-z] | sort > $t1
      7 cat $t1 | sort -u > $t2
      8 for f in `diff $t1 $t2 | grep "< " | awk -F"< " '{print $2}'`; do
      9 	n=`echo $f | sed -e 's/t_/t_2/g'`;
     10 	"Renaming $f --> $n.";
     11 	p4 integrate $f $n;
     12 	p4 delete $f;
     13 done;
     14 
     15 rm -f $t1 $t2
     16 
     17 
     18