File: genopt.com

package info (click to toggle)
gnuplot 3.5beta6.347-3
  • links: PTS
  • area: main
  • in suites: slink
  • size: 5,032 kB
  • ctags: 4,235
  • sloc: ansic: 42,086; makefile: 561; asm: 539; sh: 386; objc: 379; csh: 297; pascal: 194; perl: 138; lisp: 88
file content (17 lines) | stat: -rwxr-xr-x 389 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$! generates options file for vms link
$! p1 is filename and mode to open file (filename/write or filename/append)
$! p2 is comma-seperated list of files
$
$ open file 'p1'
$ element=0
$loop:
$ x=f$element(element,",",'p2')
$ if x .eqs. "," then goto out
$ y=f$edit(x,"COLLAPSE")  ! lose spaces
$ if y .nes. "" then write file y
$ element=element+1
$ goto loop
$
$out:
$ close file
$ exit