File: c2b

package info (click to toggle)
xv 3.10a-16
  • links: PTS
  • area: non-free
  • in suites: hamm
  • size: 7,836 kB
  • ctags: 3,378
  • sloc: ansic: 42,181; makefile: 152; sh: 78; csh: 37
file content (15 lines) | stat: -rwxr-xr-x 384 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/csh -f
#
# simple script to change all 'static char' references in bitmap files to
# 'static unsigned char' (to appease those compilers that don't like 
# values > 0x7f assigned to a signed char)
#
# --jhb, 3/21/94

foreach i (bits/*)
  if ( ! { grep -q unsigned $i } ) then
    echo $i
    sed -e 's/static char/static unsigned char/' <$i >$i.foo
    mv $i.foo $i
  endif
end