source: trunk/third/cns/src/tools/k_indent @ 8789

Revision 8789, 538 bytes checked in by ghudson, 28 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r8788, which included commits to RCS files with non-trunk default branches.
  • Property svn:executable set to *
Line 
1#!/bin/csh -f
2#
3#  Copyright 1989 by the Massachusetts Institute of Technology.
4#
5#  For copying and distribution information,
6#  please see the file <mit-copyright.h>.
7#
8
9set file=()
10set prog=/usr/ucb/indent
11set args=(-l72 -i4 -di8)
12
13foreach i ($*)
14   if ("$i" =~ -*) then
15      set args=($args "$i")
16   else
17      set file=($file "$i")
18   endif
19end
20
21if ($#file < 2) set args=($args -st)
22
23switch ($#file)
24case 0:
25   $prog $args
26   breaksw
27case 1:
28   cat $file[1] | $prog $args
29   breaksw
30default:
31   $prog $args $file
32   breaksw
33endsw
Note: See TracBrowser for help on using the repository browser.