File: innactive

package info (click to toggle)
diablo 1.16.test2-1
  • links: PTS
  • area: non-free
  • in suites: slink
  • size: 1,504 kB
  • ctags: 1,603
  • sloc: ansic: 17,654; perl: 2,054; sh: 260; csh: 118; makefile: 73
file content (15 lines) | stat: -rwxr-xr-x 355 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/csh
#
# Convert INN active file to Diablo active file, usage:
# innactive < innactivefile > /news/dactive.kp

echo '$V00.00 00000000 00000000 00000000'
while (1) 
    eval set line = "( $< )"
    if ( "$line" == "" ) then
	break
    endif
    if ( $#line == 4 ) then
	echo "+00000000.0000:$line[1] NE=$line[2] NB=$line[3] S=$line[4]"
    endif
end