File: genopt.com

package info (click to toggle)
gnuplot 4.4.0-1.1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 13,168 kB
  • ctags: 8,165
  • sloc: ansic: 79,287; lisp: 5,017; cpp: 3,521; sh: 1,059; makefile: 905; objc: 647; asm: 539; csh: 297; perl: 253; awk: 235; pascal: 194; tcl: 88
file content (17 lines) | stat: -rw-r--r-- 389 bytes parent folder | download | duplicates (18)
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-separated 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