]> git.ipfire.org Git - thirdparty/glibc.git/blame - printsources
Update.
[thirdparty/glibc.git] / printsources
CommitLineData
28f540f4
RM
1#! /bin/csh -f
2
3#
4# Prints all the files given as arguments.
5# Files that will fit on less than a printed page
6# are concatenated together. Bigger ones are pr'd.
7#
8
9
10set tocat='' topr=''
11
12foreach file ($*)
13 set lines=`wc -l $file | sed "s/$file//"`
14 if ($lines > 40) then
15 set topr=($topr $file)
16 else
17 set tocat=($tocat $file)
18 endif
19end
20
21
22if ("$topr" != '') pr $topr
23
24if ("$tocat" != '') foreach file ($tocat)
25 echo -n "==================== $file ======================"
26 cat $file
27end
28
29exit 0