File: genopt.com

package info (click to toggle)
gnuplot 3.7.2-4
  • links: PTS
  • area: main
  • in suites: woody
  • size: 6,212 kB
  • ctags: 4,635
  • sloc: ansic: 43,538; cpp: 970; makefile: 883; lisp: 661; sh: 578; asm: 539; objc: 379; csh: 297; pascal: 192; perl: 138
file content (17 lines) | stat: -rw-r--r-- 389 bytes parent folder | download | duplicates (15)
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